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

[Grafana] Embed Grafana dashboards in your web application

Open fagner-icarotech opened this issue 3 years ago • 1 comments

Is your feature request related to a problem ?

We need to change some parameters from default Grafana Configuration file(/etc/grafana/grafana.ini) for sharing it with our Application.

Describe the solution you'd like.

I need to change two parameters in the default configuration file.

allow_embedding = true 
[auth.anonymous] 
# habilitar acesso anônimo 
habilitado = true

I don't know how to get the chart value from grafana, how do I?

fagner-icarotech avatar Jul 28 '22 11:07 fagner-icarotech

I'm guessing you're talking about the Grafana installed by kube-prometheus-stack.

The upstream Grafana chart is referenced in Chart.yaml as grafana. So you could try

grafana:
  grafana.ini:
    security:
      allow_embedding: true
    auth.anonymous:
      enabled: true

in your values.yaml

pborn-ionos avatar Aug 02 '22 05:08 pborn-ionos

@pborn-ionos answer is correct, you can use any parameter from http://docs.grafana.org/installation/configuration/ in:

grafana:
  grafana.ini:

Grafana is a sub-chart of kube-prometheus-stack so you can also use any values from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml in the grafana: block of your kube-prometheus-stack values. Closing this issue.

dotdc avatar Aug 17 '22 07:08 dotdc