and how to distinguish scrape data is of which instance.
In a label. The example config that I linked above copies "__param_target" to "instance", so the "instance" label tells you which DB target was being scraped.
sneha
unread,
Sep 8, 2023, 10:37:14 AM9/8/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
Hi Brian,
thanks it worked , using curl i am able to scrape individual database.
any idea that is it possible in openshift to distinguish that metrics is of which instance.
Regards,
Sneha
Brian Candler
unread,
Sep 8, 2023, 11:36:33 AM9/8/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
Prometheus adds "job" and "instance" labels to all scraped metrics.
Therefore, show some examples of your metrics once they have been stored in Prometheus: what is in the "instance" label? Does it not already distinguish them?
If not, then show your Prometheus scrape job configuration.
sneha
unread,
Sep 9, 2023, 12:00:21 PM9/9/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
two instances are there but one of the instance get name from service in this case http, and other instance is without this name. unless i check with the target query i cant differentiate .
there are two parts one is service which looks like this
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
Please show what the metrics look like once scraped into Prometheus.
If you're only looking at "curl" output then you won't see these labels. They are added by Prometheus itself.
And if it still doesn't look right, show the actual Prometheus scrape job (i.e. from prometheus.yml; if that's built by some Kubernetes operator then show the file it builds)