Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCombining metrics #1692
Comments
brian-brazil
added
the
kind/question
label
May 30, 2016
This comment has been minimized.
This comment has been minimized.
|
What are you expecting as the output? The error is because what you've requested results in clashing time series, and there's no sane semantics for that. |
This comment has been minimized.
This comment has been minimized.
|
Also as a general note adding additional duplicate exporters for redundancy is often more hassle than it's worth. In this case even if you have a single exporter that fails, you'll have many days to get it back up and running which is more than enough time to get domains renewed. |
This comment has been minimized.
This comment has been minimized.
|
I have some other metrics that should be duplicated. At the moment I have redundancy for all the prometheus stack including prometheus itself and an alert manager and I'm very happy with the way it works – no duplicated alerts at all.
Good point. In this particular case I'd like to get min value but once I apply the min function all the labels got lost. So at least it's possible to create a personal rule for each domain and use the min function. Is there a way to avoid this? |
This comment has been minimized.
This comment has been minimized.
|
Are you specifying an |
This comment has been minimized.
This comment has been minimized.
|
I believe you meant And it did work, thank you so much!
|
hryamzik
closed this
May 31, 2016
This comment has been minimized.
This comment has been minimized.
|
Oops, with |
hryamzik
reopened this
May 31, 2016
This comment has been minimized.
This comment has been minimized.
|
Are you sure you've removed all the labels you need to? |
This comment has been minimized.
This comment has been minimized.
|
I am, I have now two labels left:
And the values are expectedly equal. |
This comment has been minimized.
This comment has been minimized.
|
Oops, my bad, IP were different. Closing this now, thank you again! |
hryamzik
closed this
May 31, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
hryamzik commentedMay 30, 2016
I have a metric that comes from different hosts exported by node_exporter. Due to the way it's exported it has two different labels:
envandinstance. I'd like to remove them for a set of metrics but once I do so a query error appears:This metric comes from two hosts for redundancy reasons but it should be aggregated as a single one. How can I do this? I'm fine to move to a blackbox_exporter but I don't see
cmdsupport there and expect to get same issues with duplicates.