Rate function produces an error value when metrics decrease

Description

When metrics decrease, the rate function produces an incorrect value.

How to test

None

How to document

None

Attachments

4

Activity

Lalit Choudhary 
December 4, 2019 at 11:55 AM

Hello Chen,

Since this is the custom dashboard using the metric function rate, I would request you to report this issue to upstream Prometheus.

https://github.com/prometheus/prometheus/issues

Chen Min 
December 4, 2019 at 7:04 AM

Hi Lalit,

As the screenshots show, when a metric decreases one during one second metrics resolution, the rate of the same metric is bigger than one very much. The correct behavior should be that the rate of the same metric is approximately one, according to https://prometheus.io/docs/prometheus/latest/querying/functions/#rate.

Sorry for my bad English.

Lalit Choudhary 
December 3, 2019 at 9:15 AM

Hi Chen,

Could you please provide more info on what is a bug here and what error you get?

 

Done

Details

Assignee

Reporter

Priority

Components

Affects versions

Environment

docker:

docker run -d \
--name pmm2-server \
--restart always \
-p 80:80 \
-p 443:443 \
-e DISABLE_UPDATES=true \
percona/pmm-server:2.1.0

prometheus:

msg="Starting Prometheus" version="(version=2.12.0, branch=non-git, revision=non-git)"
build_context="(go=go1.12.12, user=builder@0a0670d7a0b2, date=20191018-12:26:16)"
host_details="(Linux 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64 pmm2-server (none))"
fd_limits="(soft=1048576, hard=1048576)"
vm_limits="(soft=unlimited, hard=unlimited)"

Browser:

Google Chrome 78.0.3904.108 (official version) (64-bit)
Revision 4b26898a39ee037623a72fcfb77279fce0e7d648-refs / branch-heads / 3904 @ {# 889}
Operating system macOS version 10.13.6 (version 17G2208)
JavaScript V8 7.8.279.23
Flash 32.0.0.293 / Users / klutz / Library / Application Support / Google / Chrome / PepperFlash / 32.0.0.293 / PepperFlashPlayer.plugin

Created December 3, 2019 at 2:23 AM
Updated March 6, 2024 at 5:09 AM
Resolved December 4, 2019 at 11:56 AM