A
A
Anton2020-04-25 08:26:14
Monitoring
Anton, 2020-04-25 08:26:14

How to correct the request to prometheus to remove the columns from the resulting table?

I do monitoring according to the article POWA-like monitoring PostgreSQL using Prometheus https://habr.com/ru/post/345370/

The request is like this

topk(10, increase(pg_stat_statements_calls{datname!~"template.*", datname!~"postgres", instance=~"$server", datname=~"$database"}[10m]))


5ea3c9d13d65f419923420.jpeg

How to correct the request to prometheus to remove the columns from the resulting table? For example columns alias, server.
What tag to put for metrics?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question