-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[receiver/postgresql] -- "Null values not handled in colum client_addr" #33107
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Since |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
…gresql replication (#34456) **Description:** When monitoring a postgresql system with replication over unix sockets, the receiver was failing to scrape metrics due to an unexpected null value. As the postgres [documentation](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-REPLICATION-VIEW) states, the client_addr will have a null value if replication is being done over unix sockets. **Link to tracking Issue:** #33107 **Testing:** Local testing was done. The existing tests do not cover replication metrics, and after some time attempting to update the integration tests to provide a dockerized replication setup using unix sockets in testcontainers I had to admit defeat. I found two sources online for others setting up dockerized replication but I was not able to get it fully functioning using unix sockets (https://stackoverflow.com/questions/75524147/create-postgres-replica-container and https://github.com/eremeykin/pg-primary-replica/blob/main/docker-compose.yaml) **Documentation:** Documentation already claimed that unix sockets would show the work 'unix' for the replication_client attribute. This was previously incorrect (as it would break collection), but now will be accurate.
Any solution/workaround for this? |
…gresql replication (open-telemetry#34456) **Description:** When monitoring a postgresql system with replication over unix sockets, the receiver was failing to scrape metrics due to an unexpected null value. As the postgres [documentation](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-REPLICATION-VIEW) states, the client_addr will have a null value if replication is being done over unix sockets. **Link to tracking Issue:** open-telemetry#33107 **Testing:** Local testing was done. The existing tests do not cover replication metrics, and after some time attempting to update the integration tests to provide a dockerized replication setup using unix sockets in testcontainers I had to admit defeat. I found two sources online for others setting up dockerized replication but I was not able to get it fully functioning using unix sockets (https://stackoverflow.com/questions/75524147/create-postgres-replica-container and https://github.com/eremeykin/pg-primary-replica/blob/main/docker-compose.yaml) **Documentation:** Documentation already claimed that unix sockets would show the work 'unix' for the replication_client attribute. This was previously incorrect (as it would break collection), but now will be accurate.
Reviewing the thread, I think we just need a PR which sets a default value when |
Component(s)
receiver/postgresql
What happened?
Description
I've recently initiated monitoring on our SQL databases hosted on OVH using the PostgreSQL receiver. While the receiver successfully establishes a connection to the database, it encounters an error during the scraping process, resulting in failed metrics retrieval.
Note that there is indeed a null value in the pg_stat_activity; 'client_addr' column.
Expected Result
Ideally, the collector should be capable of gracefully handling rows containing NULL values, thereby bypassing them during the scraping process rather than halting due to such instances.
This issue impedes our ability to effectively monitor our databases and necessitates a resolution to ensure seamless metric collection.
Collector version
v0.88.0
PostgreSQL - version 15
Environment information
Environment
Installed via Helm version v0.99.0 on Kubernetes
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: