v3.0_disable_pgsql_prometheus_5159
Rahim Kanji 4 months ago
parent e6d0338959
commit 5bfb6e216c

@ -79,7 +79,7 @@ class Query_Cache {
*
* @param entry_size The size of each entry in the key-value store.
*/
KV_BtreeArray(unsigned int entry_size);
explicit KV_BtreeArray(unsigned int entry_size);
/**
* Destructs the KV_BtreeArray object.

@ -2514,7 +2514,7 @@ void update_modules_metrics() {
if (GloMyQC) {
GloMyQC->p_update_metrics();
}
/* Turning off Prometheus metrics collection for PostgreSQL modules in ProxySQL
#if 0 // Turning off Prometheus metrics collection for PostgreSQL modules in ProxySQL
// Update pgsql_threads_handler metrics
if (GloPTH) {
GloPTH->p_update_metrics();
@ -2527,7 +2527,7 @@ void update_modules_metrics() {
if (GloPgQC) {
GloPgQC->p_update_metrics();
}
*/
#endif
// Update cluster metrics
if (GloProxyCluster) {
GloProxyCluster->p_update_metrics();

@ -1012,8 +1012,8 @@ void execute_prepared_test(PGconn* admin_conn, PGconn* conn) {
metrics.swap();
// 4) Optional: test that a simple (non-prepared) SELECT would create a cache entry here
// (verifies rule is active). Uncomment if you want an extra sanity-check in the same test.
// 4) test that a simple (non-prepared) SELECT would create a cache entry here
// (verifies rule is active).
if (!executeQueries(conn, { "SELECT 1" }))
return;

Loading…
Cancel
Save