Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana datasource #225

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-loki-datasource
namespace: logging
labels:
grafana_datasource: "1"
app: kube-grafana
prometheus: kube
data:
kube-loki.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 }}
Loading