Grafana doesn't remember hostnames
DividedByPi
32 Posts
February 2, 2021, 4:01 pmQuote from DividedByPi on February 2, 2021, 4:01 pmHey 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!
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!
admin
2,930 Posts
February 2, 2021, 7:19 pmQuote from admin on February 2, 2021, 7:19 pmAs 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.
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.
Last edited on February 2, 2021, 7:21 pm by admin · #2
DividedByPi
32 Posts
February 3, 2021, 5:08 pmQuote from DividedByPi on February 3, 2021, 5:08 pmThanks so much! This is very helpful and exactly what I was referring to.
As always, fantastic support and knowledge!
Thanks so much! This is very helpful and exactly what I was referring to.
As always, fantastic support and knowledge!
Grafana doesn't remember hostnames
DividedByPi
32 Posts
Quote from DividedByPi on February 2, 2021, 4:01 pmHey 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!
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!
admin
2,930 Posts
Quote from admin on February 2, 2021, 7:19 pmAs 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.
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.
DividedByPi
32 Posts
Quote from DividedByPi on February 3, 2021, 5:08 pmThanks so much! This is very helpful and exactly what I was referring to.
As always, fantastic support and knowledge!
Thanks so much! This is very helpful and exactly what I was referring to.
As always, fantastic support and knowledge!