Skip to content

Commit

Permalink
Create datasources
Browse files Browse the repository at this point in the history
Signed-off-by: Ashwani Singh <[email protected]>
  • Loading branch information
ashwani-opstree committed Jul 31, 2024
1 parent 85267d0 commit 1a46266
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 90 deletions.
Binary file removed charts/pga/charts/kube-prometheus-stack-61.3.1.tgz
Binary file not shown.
Binary file removed charts/pga/charts/prometheus-adapter-4.10.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed charts/pga/charts/prometheus-pushgateway-2.14.0.tgz
Binary file not shown.
Binary file removed charts/pga/charts/thanos-15.7.12.tgz
Binary file not shown.
19 changes: 19 additions & 0 deletions charts/pga/examples/thanos/pga.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
app:
enabled: false

kube:
enabled: true
grafana:
enabled: true
sidecar:
datasources:
defaultDatasourceEnabled: false

pushgateway:
enabled: false

blackbox:
enabled: false

adapter:
enabled: true
90 changes: 0 additions & 90 deletions charts/pga/templates/datasources.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions charts/pga/templates/datasources/alertmanager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-alertmanager-datasource
namespace: monitoring
labels:
grafana_datasource: "1"
app: kube-grafana
prometheus: kube
data:
kube-alertmanager.yaml: |-
apiVersion: 1
datasources:
- name: "kube-alertmanager"
type: alertmanager
uid: alertmanager
url: http://kube-alertmanager.monitoring:9093/
access: proxy
jsonData:
handleGrafanaManagedAlerts: false
implementation: prometheus
24 changes: 24 additions & 0 deletions charts/pga/templates/datasources/prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if not .Values.thanos.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-prometheus-datasource
namespace: monitoring
labels:
grafana_datasource: "1"
app: kube-grafana
prometheus: kube
data:
kube-prometheus.yaml: |-
apiVersion: 1
datasources:
- name: "kube"
type: prometheus
uid: prometheus
url: http://kube-prometheus.monitoring:9090/
access: proxy
isDefault: true
jsonData:
httpMethod: POST
timeInterval: 30s
{{- end }}
21 changes: 21 additions & 0 deletions charts/pga/templates/datasources/tempo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: tempo-datasource
namespace: monitoring
labels:
grafana_datasource: "1"
app: kube-grafana
prometheus: kube
data:
tempo.yaml: |-
apiVersion: 1
datasources:
- name: "tempo"
type: tempo
uid: tempo
url: http://tempo.observability.svc.cluster.local:3100/
access: proxy
jsonData:
handleGrafanaManagedAlerts: false
implementation: prometheus
23 changes: 23 additions & 0 deletions charts/pga/templates/datasources/thanos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{- if .Values.thanos.enabled }}
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:
- name: "kube-thanos"
type: prometheus
uid: thanos
url: http://monitoring-thanos-query-frontend.monitoring:9090/
access: proxy
jsonData:
httpMethod: POST
timeInterval: 30s
{{- end }}

0 comments on commit 1a46266

Please sign in to comment.