Re: [prometheus-users] Alerts Description and Summary

2023-03-28 Thread sayf.eddi...@gmail.com
well yeah but I cant guarantee they understand the alerting format. also 
product operator can access the documentation too.

On Tuesday, March 28, 2023 at 2:14:29 PM UTC+2 Brian Candler wrote:

> If it's only for consumption by developers reading the rules files, then 
> would YAML comments be sufficient?
>
> On Monday, 27 March 2023 at 15:00:47 UTC+1 sayf.eddi...@gmail.com wrote:
>
>> Thanks for the response
>>
>> By generating automatic documentation I meant automatically creating 
>> developer documentation of the existing alerts and their descriptions from 
>> the yml files rather than runtime information.
>> which means the labels will not be replaced, so the less labels the more 
>> readable the result.
>>
>> I am considering the addition of an extra annotation field for that 
>> purpose I think it is better to separate the concerns here.
>>
>> On Monday, March 27, 2023 at 3:46:11 PM UTC+2 Stuart Clark wrote:
>>
>>> On 2023-03-27 14:43, sayf.eddi...@gmail.com wrote: 
>>> > Hello, I have looked online and I cant find any best practices for 
>>> > filling up the description and the summary. from the examples I see 
>>> > that Summary should be the shortest (plus the minimum usage of 
>>> > labels). But maybe it is an observation bias. 
>>> > 
>>> > I am trying to generate some automatic documentation around alerting 
>>> > and having a lot of labels makes it as user friendly as reading the 
>>> > yaml file directly 
>>> > 
>>>
>>> It really depends how you are wanting to use those. If you are wanting 
>>> to use the summary in an email's subject line then you probably want it 
>>> to be fairly short for example. You can have as many labels/annotations 
>>> as you like, so you don't even have to have one called "summary" if you 
>>> don't want to, and there's nothing stopping you from having much more 
>>> specific labels (e.g. severity, service, environment) which you can then 
>>> include in email/ticket subjects. 
>>>
>>> -- 
>>> Stuart Clark 
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/916cea26-f30a-4a18-95b1-0fd6f59bdecan%40googlegroups.com.


Re: [prometheus-users] Alerts Description and Summary

2023-03-28 Thread Brian Candler
If it's only for consumption by developers reading the rules files, then 
would YAML comments be sufficient?

On Monday, 27 March 2023 at 15:00:47 UTC+1 sayf.eddi...@gmail.com wrote:

> Thanks for the response
>
> By generating automatic documentation I meant automatically creating 
> developer documentation of the existing alerts and their descriptions from 
> the yml files rather than runtime information.
> which means the labels will not be replaced, so the less labels the more 
> readable the result.
>
> I am considering the addition of an extra annotation field for that 
> purpose I think it is better to separate the concerns here.
>
> On Monday, March 27, 2023 at 3:46:11 PM UTC+2 Stuart Clark wrote:
>
>> On 2023-03-27 14:43, sayf.eddi...@gmail.com wrote: 
>> > Hello, I have looked online and I cant find any best practices for 
>> > filling up the description and the summary. from the examples I see 
>> > that Summary should be the shortest (plus the minimum usage of 
>> > labels). But maybe it is an observation bias. 
>> > 
>> > I am trying to generate some automatic documentation around alerting 
>> > and having a lot of labels makes it as user friendly as reading the 
>> > yaml file directly 
>> > 
>>
>> It really depends how you are wanting to use those. If you are wanting 
>> to use the summary in an email's subject line then you probably want it 
>> to be fairly short for example. You can have as many labels/annotations 
>> as you like, so you don't even have to have one called "summary" if you 
>> don't want to, and there's nothing stopping you from having much more 
>> specific labels (e.g. severity, service, environment) which you can then 
>> include in email/ticket subjects. 
>>
>> -- 
>> Stuart Clark 
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/709d11b5-b0a0-401f-92f6-3fc7c9da3affn%40googlegroups.com.


Re: [prometheus-users] Alerts Description and Summary

2023-03-27 Thread sayf.eddi...@gmail.com
Thanks for the response

By generating automatic documentation I meant automatically creating 
developer documentation of the existing alerts and their descriptions from 
the yml files rather than runtime information.
which means the labels will not be replaced, so the less labels the more 
readable the result.

I am considering the addition of an extra annotation field for that purpose 
I think it is better to separate the concerns here.

On Monday, March 27, 2023 at 3:46:11 PM UTC+2 Stuart Clark wrote:

> On 2023-03-27 14:43, sayf.eddi...@gmail.com wrote:
> > Hello, I have looked online and I cant find any best practices for
> > filling up the description and the summary. from the examples I see
> > that Summary should be the shortest (plus the minimum usage of
> > labels). But maybe it is an observation bias.
> > 
> > I am trying to generate some automatic documentation around alerting
> > and having a lot of labels makes it as user friendly as reading the
> > yaml file directly
> > 
>
> It really depends how you are wanting to use those. If you are wanting 
> to use the summary in an email's subject line then you probably want it 
> to be fairly short for example. You can have as many labels/annotations 
> as you like, so you don't even have to have one called "summary" if you 
> don't want to, and there's nothing stopping you from having much more 
> specific labels (e.g. severity, service, environment) which you can then 
> include in email/ticket subjects.
>
> -- 
> Stuart Clark
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/8e2f11b4-547f-4647-9cf0-ad6e39088dccn%40googlegroups.com.


Re: [prometheus-users] Alerts Description and Summary

2023-03-27 Thread Stuart Clark

On 2023-03-27 14:43, sayf.eddi...@gmail.com wrote:

Hello, I have looked online and I cant find any best practices for
filling up the description and the summary. from the examples I see
that Summary should be the shortest (plus the minimum usage of
labels). But maybe it is an observation bias.

I am trying to generate some automatic documentation around alerting
and having a lot of labels makes it as user friendly as reading the
yaml file directly



It really depends how you are wanting to use those. If you are wanting 
to use the summary in an email's subject line then you probably want it 
to be fairly short for example. You can have as many labels/annotations 
as you like, so you don't even have to have one called "summary" if you 
don't want to, and there's nothing stopping you from having much more 
specific labels (e.g. severity, service, environment) which you can then 
include in email/ticket subjects.


--
Stuart Clark

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0a4beb659ca258bac3946b69f7280b3d%40Jahingo.com.


[prometheus-users] Alerts Description and Summary

2023-03-27 Thread sayf.eddi...@gmail.com
Hello, I have looked online and I cant find any best practices for filling 
up the description and the summary. from the examples I see that Summary 
should be the shortest (plus the minimum usage of labels). But maybe it is 
an observation bias. 

I am trying to generate some automatic documentation around alerting and 
having a lot of labels makes it as user friendly as reading the yaml file 
directly

Regards

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/14525699-58bb-4ece-b76a-43ea92878400n%40googlegroups.com.