Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Grafana doesn't remember hostnames

Hey there.

So this is more of a mild annoyance than really a problem, but something I've dealt with for a while is that when you navigate to the grafana page to get stats, it doesn't include the hostnames of my machines. It instead has a node called "ps-node-03" which is a name scheme I have never used. Once I remove that name, and manually type in the name of the host, the metrics populate immediately.

I'm just curious if this is a small bug or if you have any idea where I can go to permanently add the hostnames to grafana.

Also, on the "Ceph-Overview" tab, by default the only pool is "pool-rbd" similarly, if I want to see any other pool metrics, I have to manually type in "pool-<poolname>"

thanks for any insight!

As i understand you are referring to accessing the grafana web ui directly rather than viewing charts in PetaSAN. If so garafana uses a concept of template variables, in the Node Stats dashboard we define a template variable called $node, this should be set to the node name you want to view stats for, you need to pass/type this variable value yourself, if you access the charts from PetaSAN ui, we pass the $node variable with correct node name, if you directly use the grafana ui, you need to type the node name yourself in the combo drop down at top, probably ps-node-03 was our test cluster node name when creating the dashboard, but you should type in the correct node name yourself.

You can read more info on template variables

https://grafana.com/docs/grafana/latest/variables/

If you use the grafana dashboard directly, to see all options you should sign in as user "admin" with password "admin" (default grafana password) which you could change.You can then add more charts, define new variables...etc.

Thanks so much! This is very helpful and exactly what I was referring to.

As always, fantastic support and knowledge!