Skip to content

Instantly share code, notes, and snippets.

@adrafiq
Last active Oct 24, 2020
Embed
What would you like to do?
Monitoring Example Grafana
replicas: 1
image:
repository: grafana/grafana
tag: 6.4.2
pullPolicy: IfNotPresent
resources:
limits:
cpu: 100m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
## Configure grafana datasources
## ref: http://docs.grafana.org/administration/provisioning/#datasources
##
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://my-first-cluster-prometheus-server.monitoring.svc.cluster.local
access: proxy
isDefault: true
persistence:
type: pvc
enabled: true
## Grafana's primary configuration
## NOTE: values in map will be converted to ini format
## ref: http://docs.grafana.org/installation/configuration/
##
grafana.ini:
server:
paths:
data: /var/lib/grafana/data
logs: /var/log/grafana
plugins: /var/lib/grafana/plugins
provisioning: /etc/grafana/provisioning
analytics:
check_for_updates: true
log:
mode: console
grafana_net:
url: https://grafana.net
auth.proxy:
enabled: true
header_name: X-Forwarded-User
header_property: username
auto_sign_up: true
headers: Email:X-Forwarded-User Groups:X-Forwarded-Groups
user:
allow_sign_up: false
auto_assign_org_role: Admin
viewers_can_edit: true
editors_can_admin: true
auth.anonymous:
enabled: true
org_role: Admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment