You did my day. Thanx a lot)

четверг, 2 июля 2020 г., 16:20:21 UTC+3 пользователь Mat Arye написал:
>
> Hi Albert,
>
> I believe you need an additional layer of aggregation to combine series 
> with different gauage_index labels ;  something like this:
>
> sum without (gauge_index) (
>     
>  
> count_over_time(platform_asusg_send_status{cluster="clover-test-selectel"}[5m])
> )
>
> On Thu, Jul 2, 2020 at 8:54 AM Альберт Александров <yakhsh...@yandex.ru 
> <javascript:>> wrote:
>
>> Hi all!
>>
>>
>> I have such individual metrics:
>>
>>
>> [image: photo_2020-07-02_15-37-48.jpg]
>>
>> As you can see they differ from each other with *gauge_index* label. 
>>
>> I would like to count them over time. I tried this:
>>
>>
>>> count_over_time(platform_asusg_send_status{cluster="clover-test-selectel"}[5m])
>>
>>
>> But this returns as much graphs as the amount of gauge_index. I mean I 
>> would like to get a single graph as if there was no gauge_index label.
>>
>> Could you say please how can I reach this? 
>>
>> -- 
>> 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 promethe...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/cca51c6a-8363-40a7-84de-320fe396d9dbo%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-users/cca51c6a-8363-40a7-84de-320fe396d9dbo%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Mat Arye, Timescale-Prometheus 
> <https://github.com/timescale/timescale-prometheus> Team Lead
> See what we're working on (feedback welcome!): tsdb.co/prom-design-doc
>
>

-- 
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/2875607d-e649-47ce-99d4-41414c34479do%40googlegroups.com.

Reply via email to