Re: [prometheus-users] Can prometheus detect the periodicity of a metric?

2023-04-19 Thread Jónás Jurásek
Thank you for your help. 
I was almost certain that this would be the case, but I wanted to make 
sure. I will check out the ideas you mentioned.

Stuart Clark a következőt írta (2023. április 18., kedd, 20:34:43 UTC+2):

> That's definitely something that can be done _using_ Prometheus, but not 
> something done _within_ it.
>
> You'd have an application which uses the query API (or is sent live data 
> via remote write) to fetch metrics and then does whatever calculations are 
> needed (for example using machine learning methods). You might then expose 
> back new metrics to represent the outcome of those calculations (via 
> scraping, remote read or remote write) which can then be used for 
> visualisation and alerting.
>
> Broadly what you are talking about is anomaly detection, which have a lot 
> of ideas, PoCs, tools and blog articles created - you will find various 
> ideas and ways to achieve such things from talks given at PromCon over the 
> past years for example. 
>
>
> On 17 April 2023 07:51:21 BST, "Jónás Jurásek"  
> wrote:
>
>> I want to create alerts based on if a periodic signal(not perfectly 
>> periodic) has changed significantly from its previous behaviour. For 
>> example: A size of a table in a db is growing a certain amount every hour, 
>> but then every day it goes back to the size it was a day before. I want to 
>> alert if this table grew twice as much, or hasn't grown at all, or if if 
>> doesn't go back to it's original size. But rather than me giving the 1 day 
>> periodicity, I want prometheus to detect it, because different tables can 
>> have different periods. 
>> Is there any way to do that with prometheus? Or is the any other way to 
>> detect the change of the behaviour?
>>
>> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>

-- 
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/57824382-144c-4eb9-98ef-98167de9338cn%40googlegroups.com.


Re: [prometheus-users] Can prometheus detect the periodicity of a metric?

2023-04-18 Thread Stuart Clark
That's definitely something that can be done _using_ Prometheus, but not 
something done _within_ it.

You'd have an application which uses the query API (or is sent live data via 
remote write) to fetch metrics and then does whatever calculations are needed 
(for example using machine learning methods). You might then expose back new 
metrics to represent the outcome of those calculations (via scraping, remote 
read or remote write) which can then be used for visualisation and alerting.

Broadly what you are talking about is anomaly detection, which have a lot of 
ideas, PoCs, tools and blog articles created - you will find various ideas and 
ways to achieve such things from talks given at PromCon over the past years for 
example. 

On 17 April 2023 07:51:21 BST, "Jónás Jurásek"  wrote:
>I want to create alerts based on if a periodic signal(not perfectly 
>periodic) has changed significantly from its previous behaviour. For 
>example: A size of a table in a db is growing a certain amount every hour, 
>but then every day it goes back to the size it was a day before. I want to 
>alert if this table grew twice as much, or hasn't grown at all, or if if 
>doesn't go back to it's original size. But rather than me giving the 1 day 
>periodicity, I want prometheus to detect it, because different tables can 
>have different periods. 
>Is there any way to do that with prometheus? Or is the any other way to 
>detect the change of the behaviour?
>
>-- 
>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/efa79410-f645-4bea-b0d9-9a9afc153244n%40googlegroups.com.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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/FAAF6777-9BC3-4D24-ABF4-A13BCCBE6436%40Jahingo.com.


[prometheus-users] Can prometheus detect the periodicity of a metric?

2023-04-18 Thread Jónás Jurásek
I want to create alerts based on if a periodic signal(not perfectly 
periodic) has changed significantly from its previous behaviour. For 
example: A size of a table in a db is growing a certain amount every hour, 
but then every day it goes back to the size it was a day before. I want to 
alert if this table grew twice as much, or hasn't grown at all, or if if 
doesn't go back to it's original size. But rather than me giving the 1 day 
periodicity, I want prometheus to detect it, because different tables can 
have different periods. 
Is there any way to do that with prometheus? Or is the any other way to 
detect the change of the behaviour?

-- 
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/efa79410-f645-4bea-b0d9-9a9afc153244n%40googlegroups.com.