Grafana helm clickhouse data source provisioning

  • What Grafana version and what operating system are you using?
    Grafana v9.4.7, using Grafana helm chart
    helm-charts/charts/grafana/values.yaml at main · grafana/helm-charts · GitHub

  • What are you trying to achieve?
    Configure clickhouse data source

  • How are you trying to achieve it?
    Using clickhouse config in helm chart values
    ClickHouse plugin for Grafana | Grafana Labs

  • What happened?
    The clickhouse data source is provisioned but the server address is empty

  • What did you expect to happen?
    Server address field of data source to be filled in with value provided

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

      - name: clickhouse
        type: grafana-clickhouse-datasource
        editable: true
        jsonData:
          host: host.env.local
          port: 8123
          protocol: http
          username: user
          tlsSkipVerify: false
        secureJsonData:
          password: pass
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No errors

  • Did you follow any online instructions? If so, what is the URL?
    Followed this doc - ClickHouse plugin for Grafana | Grafana Labs
    grafana-address

Bump, any help with this?

Create datasource in the UI manually. Use HTTP API to get details about that new datasource - you will see exactly key names, which are used (maybe it’s not host, maybe it’s hostname, maybe it’s secure field - I don’t know) - so then update your provisioning yaml file accordingly.

According the documentation, it’s host. ClickHouse plugin for Grafana | Grafana Labs

According your description it doesn’t work, so do you really trust the doc?

Lol, I thought documentation is meant to instruct you on how to setup, what is the point of it then? If the developer can’t write a document on his own application to guide people on how to use it, then theres something wrong there, isn’t there?

Yeah, let’s blame & shame them. But you need to prove that doc is wrong first. But instead of that you are opening non technical question.

I had the same problem. The server address field was empty after provisioning. The advice from @jangaraj was really helpful. I created the datasource in the UI and looked at the output of /api/datasources. There was a server key instead of host.

So it’s good time to report that as an issue in the doc. We are humans and we are making mistakes usually. This is one of them.