Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using fully qualified module path #116

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7314a40
using fully qualified module path
Ahmadkashif May 21, 2023
3c7ae7f
Adding comments for documentation for clientImpl.go
Ahmadkashif May 21, 2023
34b2e12
Adding comments for documentation for config.go
Ahmadkashif May 21, 2023
873ce04
Adding comments for documentation for error.go
Ahmadkashif May 21, 2023
9325722
Adding comments for documentation for option.go
Ahmadkashif May 21, 2023
77c6893
Updating imports for clustermgr, clusterctl, ctx, proc, processor, re…
Ahmadkashif May 21, 2023
10eb923
Updating imports for all golang files
Ahmadkashif May 21, 2023
efad306
Bump actions/setup-go from 4.0.0 to 4.0.1
dependabot[bot] May 22, 2023
bd25f8c
Merge pull request #126 from paypal/dependabot/github_actions/actions…
NeetishPathak May 22, 2023
a109fb4
Fixing Build error
Ahmadkashif May 24, 2023
106bb37
Bump spring-boot-autoconfigure
dependabot[bot] Jun 2, 2023
dfb0ed0
Merge pull request #138 from paypal/dependabot/maven/client/Java/exam…
NeetishPathak Jun 13, 2023
2a1aab1
Docker build changes. 1. Adding error return in shell script. 2. Chan…
NeetishPathak Jun 13, 2023
4dbf886
Docker build supported platforms
NeetishPathak Jun 13, 2023
d306aa5
Merge pull request #143 from NeetishPathak/dev
NeetishPathak Jun 13, 2023
abd1988
support fixed key range in junoload
yapingshi Jul 7, 2023
9b8470d
Fix: Dependabot alerts
nit-tripathi Aug 10, 2023
77c0c8b
Merge pull request #147 from nit-tripathi/dev
NeetishPathak Aug 10, 2023
3f55f7e
moved ruby client to opensource
Aug 11, 2023
ca68aa1
Merge pull request #148 from VaibhavA19/dev
jostanislas Aug 11, 2023
960cf41
Merge branch 'dev' into Issue_113_UseQualiFiedPathForGoMod
Ahmadkashif Aug 15, 2023
da92a37
add swaphost and host_expansion instruction document
verapaypal Dec 4, 2023
7f288b4
Comment out macos-latest docker build, facing docker issue on image h…
NeetishPathak Dec 4, 2023
c688ed9
Merge pull request #166 from NeetishPathak/dev
NeetishPathak Dec 5, 2023
6f0f334
add more info into host_expansion.md
Dec 5, 2023
566714b
update deploy.sh to copy swaphost etc. script, update help message fo…
verapaypal Dec 14, 2023
4aa682e
Added otel collector and prometheus configs
Dec 16, 2023
b06d739
Adding prometheus , otel mornitoring setup and docs (#168)
NeetishPathak Dec 18, 2023
5dde26e
Merge branch 'dev' of https://github.com/paypal/junodb into dev
Dec 18, 2023
8a2b6e6
Updated OTEL metrics
Dec 21, 2023
74081b4
Merge pull request #169 from jostanislas/dev
NeetishPathak Dec 21, 2023
72a9a25
Fixed build failure (#171)
jostanislas Dec 22, 2023
16098b1
Fixed etcd join.
art2ip Jan 9, 2024
c7a62b4
Merge pull request #172 from art2ip/juno_24_0108
art2ip Jan 9, 2024
1b31d80
Merge branch 'dev' into Issue_113_UseQualiFiedPathForGoMod
NeetishPathak May 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added otel collector and prometheus configs
  • Loading branch information
Stanislas committed Dec 16, 2023
commit 4aa682ed0204be6d08477671bb94849828444549
29 changes: 29 additions & 0 deletions docker/manifest/config/otel/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# connfig ref : https://opentelemetry.io/docs/collector/configuration/
receivers:
otlp:
protocols:
http:
endpoint: "0.0.0.0:4318"


exporters:
# Data sources: metrics
prometheus:
endpoint: "0.0.0.0:8889"
namespace: default
send_timestamps: true
metric_expiration: 180m
# resource_to_telemetry_conversion:
# enabled: true

extensions:
health_check:
pprof:
zpages:

service:
extensions: [health_check, pprof, zpages]
pipelines:
metrics:
receivers: [otlp]
exporters: [prometheus]
6 changes: 6 additions & 0 deletions docker/manifest/config/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
scrape_configs:
- job_name: 'otel'
scrape_interval: 10s
static_configs:
- targets: ['otel:8888']
- targets: ['otel:8889']
10 changes: 10 additions & 0 deletions docker/manifest/config/proxy/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ DefaultTimeToLive = 1800
CalType = "file"
Enabled = true

[OTEL]
Enabled = true
Environment = "prod"
Host = "otel"
Port = 4318
Poolname = "proxy_openSource"
Resolution = 10
UseTls = false
UrlPath = ""

[Sherlock]
Enabled = false

Expand Down
26 changes: 26 additions & 0 deletions docker/manifest/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ services:
start_period: 10s
depends_on:
- storageserv
- otel
volumes:
- ${PWD}/config/proxy/config.toml:/opt/juno/config/config.toml
- ${PWD}/config/secrets:/opt/juno/bin/secrets
Expand All @@ -118,6 +119,31 @@ services:
- ${PWD}/config/client/config.toml:/opt/juno/config.toml
- ${PWD}/config/secrets:/opt/juno/secrets

otel:
<<: *service_default
image: otel/opentelemetry-collector:latest
container_name: otel
command: ["--config=/etc/otel-collector/config.yaml"]
volumes:
- ${PWD}/config/otel/config.yaml:/etc/otel-collector/config.yaml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the Collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
- "55679:55679" # zpages extension

prometheus:
<<: *service_default
container_name: prometheus
image: prom/prometheus:latest
volumes:
- ${PWD}/config/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"

networks:
junonet:
driver: bridge
Expand Down
4 changes: 4 additions & 0 deletions pkg/logging/otel/config/otelconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var OtelConfig *Config
type Config struct {
Host string
Port uint32
UrlPath string
Environment string
Poolname string
Enabled bool
Expand Down Expand Up @@ -57,6 +58,9 @@ func (c *Config) Default() {
if c.Environment == "" {
c.Environment = "OpenSource"
}
if c.UrlPath == "" {
c.UrlPath = "v1/datapoint"
}
}

func (c *Config) Dump() {
Expand Down