Closed ccalimeero closed 2 years ago
Bonjour Cyril,
Can you enable DEBUG logs on agent ? Do you have errors in monitored Postgres logs ?
Bonjour Étienne,
After uninstalling the agent and then reinstalling it, the problem is no longer present on my first server.
I think I had an upgrade issue that I haven't identified. The best for me was to start from scratch to clean up. All is good now for this PostgreSQL instance.
But on my second instance the problem persists with some differences. This instance is a physical replication of my first server. In the probes of this instance I indicated this:
probes = locks,process,db_size,tblspc_size,sessions,blocks,xacts,replication,loadavg,filesystems_size,cpu,bgwriter,memory
because it is recommended to disable the "wal_file" probe on a stanby server. when I restart the agent, all the probes around postgresql go into UNDEF.
On the other hand, if I position the probe with * (all), the metrics all return except "streaming replication connection" which remains in UNDEF but for which I find an error in the postgres logs
2022-03-02 11:37:02.905 CET [8792] ERREUR: erreur de syntaxe sur ou près de « CASE » au caractère 34 2022-03-02 11:37:02.905 CET [8792] INSTRUCTION : SELECT '172.20.2.40' AS upstream CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END AS connected FROM pg_stat_wal_receiver WHERE status='streaming' AND conninfo LIKE '%host=172.20.2.40%'
There seems to be a missing "," between the AS upstream and the CASE statement
postgres=# SELECT '172.20.2.40' AS upstream, postgres-# CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END AS connected postgres-# FROM pg_stat_wal_receiver postgres-# WHERE status='streaming' AND postgres-# conninfo LIKE '%host=172.20.2.40%'; upstream | connected -------------+----------- 172.20.2.40 | 1 (1 ligne)
Cyril
Yep, the missing comma is fixed in dalibo/temboard#1021
Thanks a lot Etienne, don't see this topic sorry.
Everything is ok for me i close the topic.
Cyril
Hi,
After upgrade agent in from 7.5 to 7.10 version on an postgresql 11 database server many metric return undefined values.
I dont find any error in agent log file :
no more errors in temboard UI log file :
I tried to delete the instance to re-register it later in the Temboard console but that does not change anything.
would you have any idea of e that I am missing in my manipulations.
Thank you in advance for your help
Cyril