mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 01:49:44 +00:00
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
grafana:
|
|
nameOverride: grafana
|
|
fullnameOverride: grafana
|
|
defaultDashboardsEnabled: false
|
|
enabled: true
|
|
serviceMonitor:
|
|
selfMonitor: false
|
|
# secret grafana should be created manually
|
|
# it should contain:
|
|
# admin-user
|
|
# admin-password
|
|
# GF_AUTH_GITHUB_CLIENT_SECRET
|
|
admin:
|
|
existingSecret: grafana
|
|
envFromSecret: grafana
|
|
ingress:
|
|
enabled: true
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
hosts:
|
|
- grafana.gorilych.ru
|
|
tls:
|
|
- hosts:
|
|
- grafana.gorilych.ru
|
|
secretName: grafana-tls
|
|
persistence:
|
|
enabled: true
|
|
type: pvc
|
|
existingClaim: grafana
|
|
resources:
|
|
#limits:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
plugins:
|
|
# see also https://github.com/devopsprodigy/kubegraf#installation
|
|
- devopsprodigy-kubegraf-app
|
|
- grafana-piechart-panel
|
|
grafana.ini:
|
|
server:
|
|
root_url: https://grafana.gorilych.ru
|
|
auth.github:
|
|
enabled: true
|
|
allow_sign_up: false
|
|
client_id: 6494b9ed39a915d9ac20
|
|
# client_secret: in grafana secret
|
|
scopes: user:email,read:org
|
|
auth_url: https://github.com/login/oauth/authorize
|
|
token_url: https://github.com/login/oauth/access_token
|
|
api_url: https://api.github.com/user
|
|
dashboardProviders:
|
|
dashboardproviders.yaml:
|
|
apiVersion: 1
|
|
providers:
|
|
- name: default
|
|
folder: ''
|
|
type: file
|
|
disableDeletion: false
|
|
editable: true
|
|
allowUiUpdates: false
|
|
options:
|
|
path: /var/lib/grafana/dashboards/default
|
|
dashboards:
|
|
default:
|
|
nginx-ingress:
|
|
gnetId: 9614
|
|
revision: 1
|
|
datasource: Prometheus
|
|
sidecar:
|
|
datasources:
|
|
enabled: true
|