# Source: grafana/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: grafana
  namespace: jx-observability
  labels:
    helm.sh/chart: grafana-6.4.8
    app.kubernetes.io/name: grafana
    app.kubernetes.io/instance: grafana
    app.kubernetes.io/version: "7.4.2"
    app.kubernetes.io/managed-by: Helm
    gitops.jenkins-x.io/pipeline: 'namespaces'
data:
  plugins: grafana-piechart-panel 1.6.1,briangann-datatable-panel 1.0.3
  grafana.ini: |
    [analytics]
    check_for_updates = false
    reporting_enabled = false
    [grafana_net]
    url = https://grafana.net
    [log]
    mode = console
    [paths]
    data = /var/lib/grafana/data
    logs = /var/log/grafana
    plugins = /var/lib/grafana/plugins
    provisioning = /etc/grafana/provisioning
    [server]
    domain = grafana-jx-observability.change.me
    root_url = http://grafana-jx-observability.change.me
    serve_from_sub_path = true
  datasources.yaml: |
    apiVersion: 1
    datasources:
    - access: proxy
      name: Loki
      type: loki
      uid: loki
      url: http://loki.jx-observability:3100
      version: 1
    - access: proxy
      httpMethod: POST
      name: Prometheus
      type: prometheus
      uid: prometheus
      url: http://prometheus-server.jx-observability
      version: 1
