How to disable metrics averaging? #11495
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Noticed another oddity. At first I get a smooth metric, the holes appear a little later ![]() ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I run collector and monitor it with this Grafana dashboard. With 1 RPS and 10 RPS load, I got this metrics from query:
![image](https://private-user-images.githubusercontent.com/14077902/378427429-3031bce3-6a64-4f00-afa5-e51c39fe84c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NzU4NzcsIm5iZiI6MTczOTg3NTU3NywicGF0aCI6Ii8xNDA3NzkwMi8zNzg0Mjc0MjktMzAzMWJjZTMtNmE2NC00ZjAwLWFmYTUtZTUxYzM5ZmU4NGMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDEwNDYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkMDQ3MWNkMmY0MDQyYTFiMTI1NTZiODk0MDgzZWI4ZGQ2ZWVkOTU3MWNmODYyNDFhN2U3M2YyMzBkOWI5NmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OwtBPGdZjniDrZwnAIOdT9HUSt_cAjACN9A6oDHsRPk)
When the load instantly increased to 10, the graph went to this value for 5 minutes. When the load instantly disappeared, the graph also fell for 5 minutes
Looks like result of
movingAverage(, 5min)
. How to get real load metrics?What I tried?
![image](https://private-user-images.githubusercontent.com/14077902/378438247-fa5094fa-c1ad-4933-a547-00ade34eb07a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NzU4NzcsIm5iZiI6MTczOTg3NTU3NywicGF0aCI6Ii8xNDA3NzkwMi8zNzg0MzgyNDctZmE1MDk0ZmEtYzFhZC00OTMzLWE1NDctMDBhZGUzNGViMDdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDEwNDYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZkMDVmZDI0NjBiZDgxNjE0ZGQ4YjI4NDgzOWRmZWRlMmI1NGM0ODcwZTZlNTdmOTk0ZTBjZjlhMmU5ZTVkN2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5uNPF9ONUC_ePeQUAguqfa_yWYnMyiceLn02i2yj4VU)
Replacing all variables from query with constants (
sum(rate(otelcol_receiver_accepted_log_records{receiver=~".*"}[10s])) by (receiver , )
), i got this:A way better, but not accurate. Graph show 10 records per 10 seconds, not 10 records per 1 second. Also, I dont understand why query results are different, if queries are equal
Beta Was this translation helpful? Give feedback.
All reactions