netflux-kubernetes/deploy/base/inflated/grafana/templates/configmap.yaml

119 lines
3.7 KiB
YAML
Raw Normal View History

2022-05-11 01:10:37 +00:00
---
# Source: grafana/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana
namespace: default
labels:
2024-04-18 06:00:10 +00:00
helm.sh/chart: grafana-7.3.8
2022-05-11 01:10:37 +00:00
app.kubernetes.io/name: grafana
app.kubernetes.io/instance: grafana
2024-04-18 06:00:10 +00:00
app.kubernetes.io/version: "10.4.1"
2022-05-11 01:10:37 +00:00
app.kubernetes.io/managed-by: Helm
data:
2024-04-18 06:00:10 +00:00
2022-05-11 01:10:37 +00:00
grafana.ini: |
[analytics]
check_for_updates = true
[grafana_net]
url = https://grafana.net
[log]
mode = console
[paths]
data = /var/lib/grafana/
logs = /var/log/grafana
plugins = /var/lib/grafana/plugins
provisioning = /etc/grafana/provisioning
2022-12-20 07:40:36 +00:00
[server]
domain = ''
2022-05-11 01:10:37 +00:00
datasources.yaml: |
apiVersion: 1
datasources:
- isDefault: true
name: Prometheus
type: prometheus
url: http://prometheus-server
contactpoints.yaml: |
apiVersion: 1
rules.yaml: |
apiVersion: 1
2022-05-11 01:10:37 +00:00
dashboardproviders.yaml: |
apiVersion: 1
providers:
- disableDeletion: false
editable: true
folder: ""
name: default
options:
path: /var/lib/grafana/dashboards/default
orgId: 1
type: file
download_dashboards.sh: |
#!/usr/bin/env sh
set -euf
mkdir -p /var/lib/grafana/dashboards/default
2022-05-16 20:23:53 +00:00
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
2022-12-20 07:40:36 +00:00
"https://grafana.com/api/dashboards/13192/revisions/1/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
2022-05-16 20:23:53 +00:00
> "/var/lib/grafana/dashboards/default/gitea.json"
2022-12-20 07:40:36 +00:00
2023-01-14 08:38:00 +00:00
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
"https://grafana.com/api/dashboards/6671/revisions/2/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
> "/var/lib/grafana/dashboards/default/go.json"
2022-05-11 01:10:37 +00:00
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
2022-12-20 07:40:36 +00:00
"https://grafana.com/api/dashboards/12006/revisions/1/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
2022-05-11 01:10:37 +00:00
> "/var/lib/grafana/dashboards/default/kubernetes-apiserver.json"
2022-12-20 07:40:36 +00:00
2022-05-11 01:10:37 +00:00
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
2022-12-20 07:40:36 +00:00
"https://grafana.com/api/dashboards/9614/revisions/1/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
2022-05-11 01:10:37 +00:00
> "/var/lib/grafana/dashboards/default/nginx-ingress.json"
2022-12-20 07:40:36 +00:00
2022-05-11 01:10:37 +00:00
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
"https://grafana.com/api/dashboards/1860/revisions/32/download" \
2022-12-20 07:40:36 +00:00
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
2022-05-11 01:10:37 +00:00
> "/var/lib/grafana/dashboards/default/node.json"
2022-12-20 07:40:36 +00:00
2022-05-11 01:10:37 +00:00
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
2022-12-20 07:40:36 +00:00
"https://grafana.com/api/dashboards/9628/revisions/7/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
2022-05-11 01:10:37 +00:00
> "/var/lib/grafana/dashboards/default/postgresql.json"
2022-12-20 07:40:36 +00:00
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
"https://grafana.com/api/dashboards/10046/revisions/1/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
> "/var/lib/grafana/dashboards/default/synapse.json"