Can't set implementation prometheus for alertmanager in helm chart

  • What Grafana version and what operating system are you using?
    9.3.6

  • What are you trying to achieve?
    I’m trying to add alertmanager datasource with prometheus implementation in the helm chart.

  • How are you trying to achieve it?
    I put this config in the values.yaml

  datasources:
    datasources.yaml:
      datasources:
        - name: Alertmanager
          type: alertmanager
          url: http://prometheus-alertmanager:9093
          access: proxy
          isDefault: false
          jsonData:
            implementation: prometheus
  • What happened?
    The alertmanager datasource was successfully added from the grafana dashboard. But the Implementation was still selected Mimir

  • What did you expect to happen?
    The Implementation should be selected Prometheus

  • Can you copy/paste the configuration(s) that you are having problems with?

  datasources:
    datasources.yaml:
      datasources:
        - name: Alertmanager
          type: alertmanager
          url: http://prometheus-alertmanager:9093
          access: proxy
          isDefault: false
          jsonData:
            implementation: prometheus

I noticed this happening as well. I added the apiVersion value to the top and that seemed to fix it.

apiVersion: 1

datasources:
-   name: Alertmanager
[...]