-
Notifications
You must be signed in to change notification settings - Fork 700
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
windows_mssql metrics use 'instance' label like Pormetheus #690
Comments
Can you paste a sample of the mssql metrics you're seeing? I think the label will need to be named something more specific, such as |
|
That's definitely not good: the |
Thanks @breed808 |
@breed808, @ymasson I wanted to comment on this as i think there could be a view either way. I would argue it is correct as is and should not be modified. All metrics generated by the mssql collector have a scope or context of the database instance. The physical host has nothing to do with the identity or uniqueness of the metric. The normal value of instance as filled by address by default does not apply. If the physical host name was still wanted, one could always write a relabel rule to add address as host. Now on the other hand, the full unique name of an mssql instance is technically "hostname\instance" but that would look sloppy as a single tag. So then instance stays as essentially host and the you add instance as proposed mssql_instance. I can see it either way so im torn. |
without making any change you could accomplish the above with: |
Thanks for the input @bryanklewis! My thinking is that using the database instance as the I'm not overly familiar with the |
I mostly wanted to validate this wasn't overriding an intended feature. I think your evaluation is fair, it comes down to preference for consistency among collectors or metric naming accuracy. Sounds like consistency with the other collectors in the project is preferred. For what its worth im good with that and rather not delay the change. bias for action over analysis. ;-) thank you for taking time to consider. |
Hi,
The MSSQL metrics use the label 'instance'.
But, this label is automatically attached when Prometheus scrape a target.
https://prometheus.io/docs/concepts/jobs_instances/#jobs-and-instances
In Grafana, if I do query_result({job="myjob"}), and filter on label 'instance', I have targets names and MSSQL instance in the list.
It's complicated to extract the targets list.
is using 'instance' for MSSQL a good idea ?
The text was updated successfully, but these errors were encountered: