diff --git a/services/monitoring/docker-compose.yml.j2 b/services/monitoring/docker-compose.yml.j2 index 04c17d9e..09e4b814 100644 --- a/services/monitoring/docker-compose.yml.j2 +++ b/services/monitoring/docker-compose.yml.j2 @@ -44,6 +44,7 @@ services: - "--web.external-url=https://${MONITORING_DOMAIN}/prometheus/" - "--web.route-prefix=/" - "--storage.tsdb.allow-overlapping-blocks" # via https://jessicagreben.medium.com/prometheus-fill-in-data-for-new-recording-rules-30a14ccb8467 + - "--enable-feature=exemplar-storage" #- "--web.enable-admin-api" This allows messing with prometheus using its API from the CLI. Disabled for security reasons by default. networks: - monitored diff --git a/services/monitoring/grafana/terraform/datasources.tf b/services/monitoring/grafana/terraform/datasources.tf index e4ab3218..a984cca3 100644 --- a/services/monitoring/grafana/terraform/datasources.tf +++ b/services/monitoring/grafana/terraform/datasources.tf @@ -14,6 +14,16 @@ resource "grafana_data_source" "prometheuscatchall" { basic_auth_enabled = false is_default = false uid = "RmZEr52nz" + + json_data_encoded = jsonencode({ + exemplarTraceIdDestinations = [ + { + datasourceUid = "tempo" + name = "TraceID" + } + ] + }) + } resource "grafana_data_source" "tempo" {