Giter Club home page Giter Club logo

Comments (11)

def avatar def commented on May 14, 2024 1

It looks like a bug in Coroot, will try to reproduce it

from coroot.

def avatar def commented on May 14, 2024

Your screenshot shows no connections between Prometheus and coroot-pg-agent (there should be an inbound connection to pg-agent). Are you sure that Prometheus has discovered the pg-agent's endpoint?
It seems that the Postgres metrics in your Prometheus are being gathered by pg_exporter, not coroot-pg-agent. Please check this out.

from coroot.

doonydoo avatar doonydoo commented on May 14, 2024

Thank you for the answer!
Yes, my Prometheus catches the metrics from pg-agent, I see it in it's interface

image
and also see graphics
But Coroot UI still doesn't get these metrics from Prometheus

from coroot.

def avatar def commented on May 14, 2024

To understand the case better, I need to see the following metrics with their labels, including the original IP addresses (Coroot maps Postgres metrics to the corresponding containers by matching IP:PORT pairs)

container_net_tcp_listen_info{container_id=~".*pg-agent.*"}
container_net_tcp_active_connections{container_id=~".*pg-agent.*"}
pg_up

from coroot.

doonydoo avatar doonydoo commented on May 14, 2024

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="10.100.10.111:9886", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="127.0.0.1:9886", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.17.0.1:9886", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.17.0.2:80", machine_id="4150b6543c254de9bf577a"} 1

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.18.0.1:9886", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.19.0.1:9886", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.20.0.1:9886", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1

container_net_tcp_listen_info{container_id="/docker/coroot-pg-agent", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.21.0.1:9886", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1


container_net_tcp_active_connections{actual_destination="10.100.10.111:5432", container_id="/docker/coroot-pg-agent", destination="10.100.10.111:5432", instance="10.100.10.111:9887", job="Node-agent_coroot", machine_id="4150b6543c254de9bf577a"} 1


pg_up{instance="10.100.10.111:9187", job="Databases"} 1
pg_up{instance="10.100.10.111:9886", job="PG-agent_coroot"} 1

where port 9886 is used by pg-agent, port 9887 is used by node-agent, port 9187 is used by postgres_exporter

from coroot.

def avatar def commented on May 14, 2024

At this level, everything looks correct.

Can you please show:
container_net_tcp_listen_info{listen_addr=~".+:5432"}

What does the Postgres instance look like in the Coroot UI?

from coroot.

doonydoo avatar doonydoo commented on May 14, 2024

image
image

container_net_tcp_listen_info{container_id="/docker/postgres", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="10.100.10.111:5432", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1
container_net_tcp_listen_info{container_id="/docker/postgres", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="127.0.0.1:5432", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1
container_net_tcp_listen_info{container_id="/docker/postgres, instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.17.0.1:5432", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1
container_net_tcp_listen_info{container_id="/docker/postgres", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.18.0.1:5432", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1
container_net_tcp_listen_info{container_id="/docker/postgres", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.19.0.1:5432", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1
container_net_tcp_listen_info{container_id="/docker/postgres", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.20.0.1:5432", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1
container_net_tcp_listen_info{container_id="/docker/postgres", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.20.0.28:5432", machine_id="4150b6543c254de9bf577a"} 1
container_net_tcp_listen_info{container_id="/docker/postgres", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.21.0.1:5432", machine_id="4150b6543c254de9bf577a", proxy="dockerd"} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="10.100.10.111:5432", machine_id="4150b6543c254de9bf577a} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="127.0.0.1:5432", machine_id="4150b6543c254de9bf577a} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.17.0.1:5432", machine_id="4150b6543c254de9bf577a} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.18.0.1:5432", machine_id="4150b6543c254de9bf577a} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.19.0.1:5432", machine_id="4150b6543c254de9bf577a} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.20.0.1:5432", machine_id="4150b6543c254de9bf577a} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="172.21.0.1:5432", machine_id="4150b6543c254de9bf577a} 1
container_net_tcp_listen_info{container_id="/system.slice/docker.service", instance="10.100.10.111:9887", job="Node-agent_coroot", listen_addr="[::1]:5432", machine_id="4150b6543c254de9bf577a} 1

from coroot.

def avatar def commented on May 14, 2024

@doonydoo, can you please update Coroot to version 0.10.1 and verify if this issue has been fixed?

from coroot.

doonydoo avatar doonydoo commented on May 14, 2024

Thank you, Nikolay, now it works!
image

But still have no infoirmation from pg-agent about locks metrics: pg_lock_awaiting_queries, pg_wal_receiver_status, pg_wal_replay_paused, pg_wal_receive_lsn, pg_wal_reply_lsn (I use PostgreSQL 11 version).

Is it possible to get the graph like this in my UI?
image

from coroot.

def avatar def commented on May 14, 2024

The pg_lock_awaiting_queries metric is reported only if the agent has detected blocked queries, so it seems that there have not been any such situations yet in your case.

The pg_wal_receiver_status, pg_wal_replay_paused, pg_wal_receive_lsn, pg_wal_reply_lsn metrics are gathered only if the Postgres server is a replica. It it true for your case?
If the instance is the master, only pg_wal_current_lsn is gathered.

from coroot.

doonydoo avatar doonydoo commented on May 14, 2024

@def Thank you for your help and for the explanation!

from coroot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.