yswdqz commented on PR #12458:
URL: https://github.com/apache/skywalking/pull/12458#issuecomment-2232240340
> @yswdqz Could you check the `pg service hit rate`, it is greater than
100%, is it expected?
>
No, seems a bug. I'm sorry I don't have time at the moment, can you try to
modify:
``` mal
before:
- name: cache_hit_rate
exp: (pg_stat_database_blks_hit*100 / (pg_stat_database_blks_read +
pg_stat_database_blks_hit)).sum(['service_instance_id','host_name'])
after:
- name: cache_hit_rate
exp: (pg_stat_database_blks_hit*100 / (pg_stat_database_blks_read +
pg_stat_database_blks_hit)).avg(['service_instance_id','host_name'])
```
Probably because this metric is at the database level and should not use sum
(which I used to think of as instance level).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]