Skip to content

Commit b38fbab

Browse files
authored
Prometheus enable exemplars and tracing (#1040)
* Master: prometheus enable exemplers Related PR(s): * ITISFoundation/osparc-simcore#7635 * Enable exemplars in all configurations * Configure tempo trace id for catchall data source Related PR(s): * https://git.speag.com/oSparc/osparc-ops-deployment-configuration/-/merge_requests/1405
1 parent 34a1370 commit b38fbab

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

services/monitoring/docker-compose.yml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ services:
4444
- "--web.external-url=https://${MONITORING_DOMAIN}/prometheus/"
4545
- "--web.route-prefix=/"
4646
- "--storage.tsdb.allow-overlapping-blocks" # via https://jessicagreben.medium.com/prometheus-fill-in-data-for-new-recording-rules-30a14ccb8467
47+
- "--enable-feature=exemplar-storage"
4748
#- "--web.enable-admin-api" This allows messing with prometheus using its API from the CLI. Disabled for security reasons by default.
4849
networks:
4950
- monitored

services/monitoring/grafana/terraform/datasources.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ resource "grafana_data_source" "prometheuscatchall" {
1414
basic_auth_enabled = false
1515
is_default = false
1616
uid = "RmZEr52nz"
17+
18+
json_data_encoded = jsonencode({
19+
exemplarTraceIdDestinations = [
20+
{
21+
datasourceUid = "tempo"
22+
name = "TraceID"
23+
}
24+
]
25+
})
26+
1727
}
1828

1929
resource "grafana_data_source" "tempo" {

0 commit comments

Comments
 (0)