[prometheus-users] count_over_time

2020-07-02 Thread Альберт Александров
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 thi

Re: [prometheus-users] count_over_time

2020-07-02 Thread Альберт Александров
without (gauge_index) ( > > > count_over_time(platform_asusg_send_status{cluster="clover-test-selectel"}[5m]) > ) > > On Thu, Jul 2, 2020 at 8:54 AM Альберт Александров > wrote: > >> Hi all! >> >> >> I have such individual metrics: >> >>

[prometheus-users] Query with diivision

2020-07-06 Thread Альберт Александров
Hi all! Have such metrics: [image: photo_2020-07-06_10-30-12.jpg] I would like to query: (rules_job_count{cluster="loco-prod", status="failed"} + > rules_job_count{cluster="loco-prod", status="cancelled"}) / > rules_job_count{cluster="loco-prod", status="finished"} But this didn't work

Re: [prometheus-users] Query with diivision

2020-07-06 Thread Альберт Александров
n and division operations. See more details about this at > https://prometheus.io/docs/prometheus/latest/querying/operators/#vector-matching > > > On Mon, Jul 6, 2020 at 10:48 AM Альберт Александров > wrote: > >> >> Hi all! >> >> >> Have such m

[prometheus-users] Requests duration optimizing

2021-05-10 Thread Альберт Александров
Hi all! I have to optimize request duration. As you can guess for that I need to how it was before optimization and how it goes now. At this moment I divide *classification_request_duration_seconds_sum *on *classification_request_duration_seconds_count:* aimee_classification_request_duration_sec

[prometheus-users] Requests duration optimizing

2021-05-10 Thread Альберт Александров
Hi all! I have to optimize request duration. As you can guess for that I need to how it was before optimization and how it goes now. At this moment I divide *classification_request_duration_seconds_sum *on *classification_request_duration_seconds_count:* classification_request_duration_seconds_s