scylla-monitoring icon indicating copy to clipboard operation
scylla-monitoring copied to clipboard

Allow labeling hosts (e.g. using their DNS names)

Open vladzcloudius opened this issue 2 years ago • 5 comments

scylla_servers.yaml today only allows defining targets by giving either an IP or a DNS name of corresponding hosts.

It would be very useful if we could configure both an IP (e.g. an internal one) for actual addressing but also being able to define a label (e.g. corresponding DNS name) that would appear in drop down menus and on pop-up messages and queries.

Meaning there should be a way to tell Grafana that a specific label should translate to a given IP.

vladzcloudius avatar Aug 29 '22 21:08 vladzcloudius

@amnonh Is it hard to implement?

vladzcloudius avatar Aug 29 '22 21:08 vladzcloudius

Sounds like something that needs to be done with a dns/service discovery

amnonh avatar Aug 30 '22 12:08 amnonh

Sounds like something that needs to be done with a dns/service discovery

Imagine a situation when a DNS resolves to a public IP (as expected) while scraping is done via internal ones.

vladzcloudius avatar Aug 30 '22 13:08 vladzcloudius

I understand the scenario, the question is how it's going to be provisioned? will someone manually going to change those labels?

amnonh avatar Aug 31 '22 06:08 amnonh

I understand the scenario, the question is how it's going to be provisioned? will someone manually going to change those labels?

Manually is one option. Automation tool (e.g. Ansible) is another.

There isn't any auto-detection today either AFAIK.

Whatever the future format is going to be - we can automate its generation.

vladzcloudius avatar Aug 31 '22 12:08 vladzcloudius