Skip to content

Commit

Permalink
Update grafana datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwani-opstree committed Aug 1, 2024
1 parent fb86adf commit 8dbb152
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
33 changes: 33 additions & 0 deletions charts/pga/templates/datasources/loki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-thanos-datasource
namespace: monitoring
labels:
grafana_datasource: "1"
app: kube-grafana
prometheus: kube
data:
kube-thanos.yaml: |-
apiVersion: 1
datasources:
- uid: loki
orgId: 1
name: Loki
type: loki
typeName: Loki
access: proxy
url: http://loki-logging-gateway.logging.svc
password: ''
user: ''
database: ''
basicAuth: false
isDefault: false
jsonData:
derivedFields:
- datasourceUid: tempo
matcherRegex: (?:trace_id)=(\w+)
name: TraceID
url: $${__value.raw}
readOnly: false
editable: true
6 changes: 6 additions & 0 deletions charts/pga/templates/datasources/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ data:
jsonData:
httpMethod: POST
timeInterval: 30s
exemplarTraceIdDestinations:
- datasourceUid: tempo
name: TraceID
httpMethod: POST
readOnly: false
editable: true
{{- end }}
13 changes: 13 additions & 0 deletions charts/pga/templates/datasources/tempo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,16 @@ data:
jsonData:
handleGrafanaManagedAlerts: false
implementation: prometheus
nodeGraph:
enabled: true
search:
hide: false
lokiSearch:
datasourceUid: loki
tracesToLogs:
datasourceUid: loki
filterBySpanID: false
filterByTraceID: true
mapTagNamesEnabled: false
tags:
- app
6 changes: 6 additions & 0 deletions charts/pga/templates/datasources/thanos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ data:
jsonData:
httpMethod: POST
timeInterval: 30s
exemplarTraceIdDestinations:
- datasourceUid: tempo
name: TraceID
httpMethod: POST
readOnly: false
editable: true
{{- end }}

0 comments on commit 8dbb152

Please sign in to comment.