Skip to content

Instantly share code, notes, and snippets.

@adrafiq
Last active October 24, 2020 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrafiq/0a95756ed19c2e77475bf2fe68b6d932 to your computer and use it in GitHub Desktop.
Save adrafiq/0a95756ed19c2e77475bf2fe68b6d932 to your computer and use it in GitHub Desktop.
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