Skip to content

Unable to distinguish different Metwork host in dashboard. #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dearith opened this issue Apr 5, 2019 · 1 comment
Open

Unable to distinguish different Metwork host in dashboard. #64

dearith opened this issue Apr 5, 2019 · 1 comment

Comments

@dearith
Copy link
Contributor

dearith commented Apr 5, 2019

I want to monitor 2 different Metwork host in a single mfadmin module.

All is fine, except in the Grafana dashboards the host list contains only 2 items 'all' and 'localhost'.

a MFDATA and a MFADMIN are running on host1
a MFDATA is running on host2

My [admin] sections of config.ini file are:

host1

[admin]
# null => no monitoring
# hostname=null
hostname=localhost
# influxdb_http_port=18086

host2

[admin]
# null => no monitoring
# hostname=null
hostname=host2
# influxdb_http_port=18086

The cause seems to come from the variable HOSTNAME which contains the same value on the 2 hosts:

HOSTNAME=localhost.localdomain

Is it possible not to use HOSTNAME as host in Grafana, but use the hostname value of the config.ini (or another way to distinguish different hosts) ?

@thefab
Copy link
Member

thefab commented Apr 5, 2019

this could be an option in config.ini to force the source hostname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants