Skip to content

Commit e22925e

Browse files
committed
I can see metrics now being loaded in grafana which is OK
1 parent dcd2ce3 commit e22925e

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

deployments/otel-collector-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ service:
3636
metrics:
3737
receivers: [otlp]
3838
processors: [batch]
39-
exporters: [prometheus]
39+
exporters: [prometheus, debug]

deployments/prometheus.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ scrape_configs:
77
static_configs:
88
- targets: ['localhost:9090']
99

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']
10+
# Scrape configuration for the OpenTelemetry Collector's Prometheus exporter
11+
- job_name: 'otel-metrics'
12+
scrape_interval: 5s
13+
static_configs:
14+
- targets: ['otel-collector:8889']
15+
metric_relabel_configs:
16+
- source_labels: [__name__]
17+
regex: 'fdb_.*'
18+
action: keep

0 commit comments

Comments
 (0)