Grafana - unable to add my first data source?

As a “clean start”, I have installed HomeAssistant as a VirtualBox client. Then InfluxDB and finally Grafana.
I think InfluxDB is reading/storing my ESPHome sensor correctly because I can use the InfluxDB “Explore” to view it. However, I seem to have trouble getting the Add Data Source to complete. When I select “Save & Test” it reports “Invalid URL”. I note from various tutorials that the URL may be “http://a0d7b954-influxdb:8086” but I can not edit the Garfana URL field?
image

I note somewhere, that only a Grafana Admin can create a Data Source. Is this a likely reason?

Regards, M.

Seems likely. I have the same setup and only ever use the admin login, which can edit that field. I set it up ages ago though, so I can’t remember specifics. And yes, the URL is correct.

Hi Michael,
I have now learnt that the default user when using the Community Add-on is in fact “Admin” password “hassio”. And that was the active user when trying to create a Data Source. So I think user permissions are not likely to be the cause of my problem?

Sorry - which URL is correct? http://a0d7b954-influxdb:8086 or http://localhost:8066

Regards, M.

Oops sorry - the first one http://a0d7b954-influxdb:8086

Have you read this https://github.com/hassio-addons/addon-grafana/blob/c31b8f12f754321b1cba400988a01e5acf7cc842/grafana/DOCS.md#using-it-with-the-influxdb-community-add-on

Yes. Anything in particular you would like to draw my attention?
I am unable to change the URL from http://localhost:8086 TO http://a0d7b954-influxdb:8086 as advised in that document.

I can see the cursor in your screenshot. What happens when you type in there.

Nothing! To add more detail…
If I make “Name” the focus, I get a Blue bounding box around the field and I am able to type, delete and relocate cursor within the field with the mouse.
However, if I click on the URL field, I get the blue bounding box. But I am not able to type or reposition the cursor with the mouse or the arrow keys?

Confused… M.

Works here. Try another browser or deleting your browser cache.

Okay,

Don’t know why :rage:
Rebooted server, hopped on one leg, listened to a New Order LP…

… and it is working.
Thank you all for your help. Greatly appreciated. M.

None of that helped, its all in the way you hold your mouth :slight_smile:

When Grafana is first installed it appears to have as datasource “http://localhost:9090
but it does not! It is an example and the text colour is slightly lighter than if you had typed it yourself.

You must actually write “http://localhost:9090” in the relevant field.

As a professional Shruberrer, this is the first time I come across something like this

1 Like

:astonished:
That’s a good trick. It was enough to force me to find an alternative!
Thanks, M.