Hi all,As per the subject line I'm a prometheus newb for just over a week and trying to wrap my head around the alerting and notifications, specifically how I can use notification data: GroupLabels, CommonLabels, CommonAnnotation as per https://prometheus.io/docs/alerting/notifications/#data-structuresWhere do these different KV pairs get defined?Are there already standard KV pairs? if so where can I see what these are?or do I have to set these?
Is there documentation somewhere outlining best practice around this?I feel that I'm missing something simple and when its explained to me the Doh! light will go on.regards,Stephen.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b12afb86-cf75-4866-aa77-ba3c4eac55ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 27 November 2017 at 16:48, Stephen Eaton <sea...@strobotics.com.au> wrote:Hi all,As per the subject line I'm a prometheus newb for just over a week and trying to wrap my head around the alerting and notifications, specifically how I can use notification data: GroupLabels, CommonLabels, CommonAnnotation as per https://prometheus.io/docs/alerting/notifications/#data-structuresWhere do these different KV pairs get defined?Are there already standard KV pairs? if so where can I see what these are?or do I have to set these?The documentation you linked to is the KV pairs that you'll have access to in notification templates.This example might help: https://www.robustperception.io/alertmanager-notification-templating-with-slack/
Is there documentation somewhere outlining best practice around this?I feel that I'm missing something simple and when its explained to me the Doh! light will go on.regards,Stephen.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b12afb86-cf75-4866-aa77-ba3c4eac55ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Brian,What I'm after is what defined KV pairs are already avail? Also or how/where do I set them myself? i.e. are these KV pairs the ones that can be set in the Rules? or are they set elsewhere?
On Tuesday, 28 November 2017 20:38:23 UTC+8, Brian Brazil wrote:On 27 November 2017 at 16:48, Stephen Eaton <sea...@strobotics.com.au> wrote:Hi all,As per the subject line I'm a prometheus newb for just over a week and trying to wrap my head around the alerting and notifications, specifically how I can use notification data: GroupLabels, CommonLabels, CommonAnnotation as per https://prometheus.io/docs/alerting/notifications/#data-structuresWhere do these different KV pairs get defined?Are there already standard KV pairs? if so where can I see what these are?or do I have to set these?The documentation you linked to is the KV pairs that you'll have access to in notification templates.This example might help: https://www.robustperception.io/alertmanager-notification-templating-with-slack/--Is there documentation somewhere outlining best practice around this?I feel that I'm missing something simple and when its explained to me the Doh! light will go on.regards,Stephen.
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b12afb86-cf75-4866-aa77-ba3c4eac55ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Brian Brazil
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/0b47bca5-ab13-4243-ba26-197c53d4f7d2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/0b47bca5-ab13-4243-ba26-197c53d4f7d2%40googlegroups.com.
Hi Brian and thanks for the reply,So basically all of these labels / annotations are set within the individual rules or alert group.In examples online and around the place I see a label named 'env' being used in notifications is this one that I need to set somewhere?
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/bb7366a0-d772-4ab2-aa1b-c5f15a6e964f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/bb7366a0-d772-4ab2-aa1b-c5f15a6e964f%40googlegroups.com.