summaryrefslogtreecommitdiff
path: root/src/grafana/provisioning/datasources
diff options
context:
space:
mode:
Diffstat (limited to 'src/grafana/provisioning/datasources')
-rw-r--r--src/grafana/provisioning/datasources/default.yaml23
-rw-r--r--src/grafana/provisioning/datasources/jaeger.yaml22
-rw-r--r--src/grafana/provisioning/datasources/opensearch.yaml21
3 files changed, 66 insertions, 0 deletions
diff --git a/src/grafana/provisioning/datasources/default.yaml b/src/grafana/provisioning/datasources/default.yaml
new file mode 100644
index 0000000..ee65d92
--- /dev/null
+++ b/src/grafana/provisioning/datasources/default.yaml
@@ -0,0 +1,23 @@
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+
+
+apiVersion: 1
+
+datasources:
+ - name: Prometheus
+ uid: webstore-metrics
+ type: prometheus
+ url: http://prometheus:9090
+ editable: true
+ isDefault: true
+ jsonData:
+ # Align Prometheus data source time interval with the OTel SDKs' export interval (see OTEL_METRIC_EXPORT_INTERVAL)
+ timeInterval: "60s"
+ exemplarTraceIdDestinations:
+ - datasourceUid: webstore-traces
+ name: trace_id
+
+ - url: http://localhost:8080/jaeger/ui/trace/$${__value.raw}
+ name: trace_id
+ urlDisplayLabel: View in Jaeger UI
diff --git a/src/grafana/provisioning/datasources/jaeger.yaml b/src/grafana/provisioning/datasources/jaeger.yaml
new file mode 100644
index 0000000..08c93bd
--- /dev/null
+++ b/src/grafana/provisioning/datasources/jaeger.yaml
@@ -0,0 +1,22 @@
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+
+
+apiVersion: 1
+
+datasources:
+ - name: Jaeger
+ uid: webstore-traces
+ type: jaeger
+ url: http://jaeger:16686/jaeger/ui
+ editable: true
+ isDefault: false
+ jsonData:
+ tracesToLogsV2:
+ datasourceUid: webstore-logs
+ spanStartTimeShift: "-20m"
+ spanEndTimeShift: "20m"
+ filterByTraceID: true
+ filterBySpanID: true
+ customQuery: true
+ query: traceId:"$${__trace.traceId}" AND spanId:"$${__span.spanId}"
diff --git a/src/grafana/provisioning/datasources/opensearch.yaml b/src/grafana/provisioning/datasources/opensearch.yaml
new file mode 100644
index 0000000..cb15489
--- /dev/null
+++ b/src/grafana/provisioning/datasources/opensearch.yaml
@@ -0,0 +1,21 @@
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+
+apiVersion: 1
+
+datasources:
+ - name: OpenSearch
+ uid: webstore-logs
+ type: grafana-opensearch-datasource
+ url: http://opensearch:9200/
+ access: proxy
+ editable: true
+ isDefault: false
+ jsonData:
+ database: otel-logs-*
+ flavor: opensearch
+ logLevelField: severity.text.keyword
+ logMessageField: body
+ pplEnabled: true
+ timeField: observedTimestamp
+ version: 3.2.0