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 upAlerting time series misses external label #2271
Comments
This comment has been minimized.
This comment has been minimized.
|
My guess is that this is happening because external labels are only attached at the point when a notification is sent out, whereas we should have already added them at the point where it is added to the storage. Does that sounds right @brian-brazil @fabxc ? |
This comment has been minimized.
This comment has been minimized.
|
They should only be added when they're sent out, otherwise would not be only external labels. |
This comment has been minimized.
This comment has been minimized.
|
Makes sense. So which time-series should exist then/not exist @brian-brazil ? |
This comment has been minimized.
This comment has been minimized.
|
Only the timeseries without external labels should exist. |
This comment has been minimized.
This comment has been minimized.
|
Ok that makes sense as well. I'll have a look later if I can find something that could be causing this. |
This comment has been minimized.
This comment has been minimized.
|
@brancz did you look into that any further? |
This comment has been minimized.
This comment has been minimized.
|
I don't think so - sorry. I don't think I found what was causing this, but I also don't remember how much time I spent on it. |
fabxc
added this to the v1.5 milestone
Jan 17, 2017
brian-brazil
added
the
kind/bug
label
Mar 27, 2017
This comment has been minimized.
This comment has been minimized.
|
This was fixed. |
brian-brazil
closed this
May 15, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 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. |
svenmueller commentedDec 10, 2016
What did you do?
Querying for alert time series data.
What did you expect to see?
The labels should be the same for the same alert timeseries data.
What did you see instead? Under which circumstances?
When querying for alerts, two timeseries are returned instead of a single one. One is missing the external label "hostname".
Example:
Alert "InstanceLowMemory" is fired for instance "domain.com" which creates a timeseries with external label "hostname". But for the same alert, there is also a different timeseries without label "hostname".
Query:
Result:
Environment
System information:
Linux 3.13.0-105-generic x86_64
Prometheus version:
prometheus, version 1.4.1 (branch: master, revision: 2a89e87)
build user: root@e685d23d8809
build date: 20161128-09:59:22
go version: go1.7.3
Alertmanager version:
alertmanager, version 0.5.1 (branch: master, revision: 0ea1cac51e6a620ec09d053f0484b97932b5c902)
build user: root@fb407787b8bf
build date: 20161125-08:14:40
go version: go1.7.3
Prometheus configuration file: