Skip to content

Commit dcd2ce3

Browse files
committed
Getting towards metrics, setup not yet completed
1 parent 45a0135 commit dcd2ce3

File tree

4 files changed

+38
-9
lines changed

4 files changed

+38
-9
lines changed

config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ pprof:
132132
observability:
133133
metrics:
134134
enable: true # Enable or disable metrics collection.
135-
endpoint: "0.0.0.0:4317" # Endpoint for metrics collector.
135+
endpoint: "localhost:4317" # Endpoint for metrics collector.
136136
exportInterval: 15s # Interval to export metrics data.
137137
useTLS: false # Set this to false to disable TLS.
138138

139139
tracing:
140140
enable: true # Enable or disable tracing.
141-
endpoint: "0.0.0.0:4317" # Endpoint for tracing collector.
141+
endpoint: "localhost:4317" # Endpoint for tracing collector.
142142
headers: {} # Additional headers for tracing requests.
143143
sampler: "always_on" # Options: always_on, probability.
144144
samplingRate: 0.1 # Sampling rate for probabilistic sampling.

deployments/otel-collector-config.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,38 @@ receivers:
22
otlp:
33
protocols:
44
grpc:
5+
endpoint: 0.0.0.0:4317
56
http:
7+
endpoint: 0.0.0.0:4318
8+
9+
extensions:
10+
health_check:
11+
endpoint: 0.0.0.0:13133
12+
pprof:
13+
zpages:
614

715
exporters:
816
otlp:
9-
endpoint: "http://jaeger:4317"
17+
endpoint: "jaeger:14250"
1018
tls:
1119
insecure: true
20+
prometheus:
21+
endpoint: "0.0.0.0:8889"
22+
namespace: "fdb"
23+
debug:
24+
verbosity: detailed
25+
26+
processors:
27+
batch:
1228

1329
service:
30+
extensions: [health_check, pprof, zpages]
1431
pipelines:
1532
traces:
1633
receivers: [otlp]
17-
exporters: [otlp]
34+
processors: [batch]
35+
exporters: [otlp, debug]
36+
metrics:
37+
receivers: [otlp]
38+
processors: [batch]
39+
exporters: [prometheus]

deployments/prometheus.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ global:
22
scrape_interval: 15s
33

44
scrape_configs:
5-
- job_name: 'otel-collector'
5+
# Self-scraping for Prometheus itself
6+
- job_name: 'prometheus'
67
static_configs:
7-
- targets: ['otel-collector:55680']
8+
- targets: ['localhost:9090']
9+
10+
# Scrape configuration for the otel-collector - commented out until we configure a metrics endpoint
11+
# - job_name: 'otel-collector'
12+
# metrics_path: '/metrics'
13+
# static_configs:
14+
# - targets: ['otel-collector:8888']

docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
ports:
3131
- "4317:4317" # OTLP gRPC receiver
3232
- "4318:4318" # OTLP HTTP receiver
33-
- "55680:55680" # OpenTelemetry protocol receiver
33+
- "13133:13133" # Health check endpoint
3434
command: ["--config=/etc/otel-collector-config.yaml"]
3535
volumes:
3636
- ./deployments/otel-collector-config.yaml:/etc/otel-collector-config.yaml # Mounting custom config for OpenTelemetry collector
@@ -60,9 +60,9 @@ services:
6060
ports:
6161
- "9690:9090"
6262
volumes:
63-
- ./deployments/prometheus.yml:/etc/prometheus/prometheus.yaml
63+
- ./deployments/prometheus.yaml:/etc/prometheus/prometheus.yml
6464
command:
65-
- '--config.file=/etc/prometheus/prometheus.yaml'
65+
- '--config.file=/etc/prometheus/prometheus.yml'
6666

6767
volumes:
6868
grafana-storage:

0 commit comments

Comments
 (0)