Details
-
Defect
-
Status: Done
-
Medium
-
Resolution: Fixed
-
2.26.0
-
Yes
-
Yes
-
[obsolete] C/S Core
Description
- start stage instance with PG and your ssh key
- access stage via ssh
- execute "pmm-admin list" and get PG_SERVICE_NAME
- execute "docker stop {PG_SERVICE_NAME}"
- in pmm admin navigate to explore
- run query "pg_up{service_name='PG_SERVICE_NAME'}"
Expected result: pg_up 0 and the graph shows line on 0 level;
Actual result: pg_up is null, and graph line ends on level 1
Additionally:
in "pmm inventory > agents" tab there is an agent id and port for a target Postresql Exporter. Execute to see that metric is there:
curl --silent -u "pmm:/agent_id/xxx" 'http://stage_ip:port/metrics' | grep 'pg_up'
Workaround from anton.bystrov is to increase custom metric resolution "high" interval to 10 seconds.
see automated test: https://github.com/percona/pmm-ui-tests/blob/PMM-9384-part2/tests/metrics/verifyPostgresql_test.js#L29