helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Enable Grafana embeds

Open apgapg opened this issue 3 years ago • 1 comments

Is your feature request related to a problem ?

Currently all blogs out there directs to create a new grafana.ini file to enable embeds. How can we enable embeds when installing via helm way.

Ref: https://akshaybobade777.medium.com/embed-grafana-dashboards-in-your-web-application-17df196dcdec#:~:text=Login%20into%20Grafana%20dashboard%20and,code%20into%20your%20HTML%20page.

allow_embedding = true
[auth.anonymous]
# enable anonymous access
enabled = true

Describe the solution you'd like.

Some way to add above settings via helm values way

Describe alternatives you've considered.

Couldn't find other way

Additional context.

No response

apgapg avatar Jul 20 '22 10:07 apgapg

I have solved this via env variables. Something like helm values

controller:
  metrics:
    port: 10254
    enabled: true
    service:
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "10254"
    serviceMonitor:
      enabled: true
      namespace: monitoring
      namespaceSelector:
        any: true

grafana:
  service:
    type: LoadBalancer
  grafana.ini:
    allow_embedding: true
    auth.anonymous: true
    # enable anonymous access
    enabled: true
  env:
    GF_SECURITY_ALLOW_EMBEDDING: true
    GF_AUTH_ANONYMOUS_ENABLED: true

prometheus:
  prometheusSpec:
    podMonitorSelectorNilUsesHelmValues: false
    serviceMonitorSelectorNilUsesHelmValues: false

apgapg avatar Jul 25 '22 06:07 apgapg

Same as https://github.com/prometheus-community/helm-charts/issues/2316 Closing

dotdc avatar Aug 17 '22 07:08 dotdc