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 upStale issue when federate from other Prometheus #4082
Comments
This comment has been minimized.
This comment has been minimized.
|
This behaviour is correct, removing the timestamp would result in the data having the wrong timestamp. I think you're looking for |
brian-brazil
closed this
Apr 12, 2018
This comment has been minimized.
This comment has been minimized.
|
But how the external_labels will help if metric is federated with timestamp that cause this issue? |
This comment has been minimized.
This comment has been minimized.
|
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
This comment has been minimized.
This comment has been minimized.
|
I mean that i think it will not help at all because the issue appear because of timestamp, and this config do not remove it, but ok i will ask them too |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil I think you misunderstood me this metric not on prometheus server itself, its on huge amount of nodes inside the company, and external_labels is not a solution here. So i need get this metrics ans somehow federate them without timestamp, but if you say that its impossible i think its not a good, because many federated metrics will have duplication |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
dmitriy-lukyanchikov commentedApr 12, 2018
•
edited
Proposal
remove timestamp from federated metrics
Bug Report
What did you do?
I have 2 prometheus servers A and B. Server B configured to federate from server A.
server A scrape metric with couple of labels inside file from couple of nodes, it look like this
server_labels{dc="fr",env="prod"} 1I use it in group_left query
then i run query to see metric labels changes in time on graph from Server B that do federation
What did you expect to see?
i expected to see different metric labels on graph, and see changes of labels
What did you see instead? Under which circumstances?
many-to-many error. Investigation confermed that its a stale issue because all federated values have timestamp and prometheus wait exactly 5 minutes before make decision that this metric are not exist. This was the cause that for period of 5-6 minutes tehre is two copy of metric with different labels.
from Server A (that actually collect metrics from nodes) query work perfectly.
All federated metrics looks like this
server_labels{dc="fr",env="prod"} 1 1523536675185Environment
VMs on Digital Ocean
Linux 4.4.0-119-generic x86_64
both prometheus servers are 2.1.0