Skip to content
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

Multi line sample in aws_rds_log_messages_total #2

Open
vikranty123 opened this issue Mar 2, 2023 · 0 comments
Open

Multi line sample in aws_rds_log_messages_total #2

vikranty123 opened this issue Mar 2, 2023 · 0 comments

Comments

@vikranty123
Copy link

vikranty123 commented Mar 2, 2023

Postgres logs the statement after the error

2023-03-02 07:12:56 UTC:IP_ADDRESS(35258):postgres@DB_NAME:[7317]:ERROR:  canceling statement due to statement timeout
2023-03-02 07:12:56 UTC:IP_ADDRESS(35258):postgres@DB_NAME:[7317]:STATEMENT:  select pg_sleep(20);

The series created in prometheus is

aws_rds_log_messages_total{instance="host.docker.internal:8014", job="aws_agent", level="error", pattern_hash="e4622f3614d87800cbe4608232f0c563", rds_instance_id="ap-south-1/DB_NAME", sample="UTC:IP_ADDRESS(35258):postgres@DB_NAME:[7317]:ERROR: canceling statement due to statement timeout"}

We've an immediate requirement to alert on the statements which are a) timed out or b) deadlocked. If we can add the statement to the sample, it will solve the problem. Do you've any plan to support this feature soon ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant