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

Gitlab Collector: Stuck idle in transaction collector and test #846

Conversation

Sticksman
Copy link
Contributor

Split from #819

@Sticksman Sticksman changed the title Stuck idle in transaction collector and test Gitlab Collector: Stuck idle in transaction collector and test Jun 28, 2023
@tomhughes
Copy link
Contributor

Is hard coding a specific time limit in the collector really a good idea?

We've been using a modified version of the pg_process_idle query which includes both idle and idle in transaction and breaks the metrics down by both state and application which then allowed us to write alerts on pg_process_idle_seconds which look for excessive delays.

@SuperQ
Copy link
Contributor

SuperQ commented Jul 3, 2023

@tomhughes Yea, you're correct, it would be good to have a flag for the hard-coded values.

Perhaps you would like to contribute your version as a new collector method?

@SuperQ
Copy link
Contributor

SuperQ commented Jul 3, 2023

@tomhughes Another thing I was thinking about was if we wrote a pg_stat_activity collector that provided several different metrics. Possibly dump a raw output of the table and process it in Go to produce various metrics rather than try and do everything in SQL.

@Sticksman
Copy link
Contributor Author

Should I close this one then?

@SuperQ
Copy link
Contributor

SuperQ commented Aug 24, 2023

@Sticksman Yes, I think the other metric is a superset of this. Do you agree?

@Sticksman
Copy link
Contributor Author

Yep, sounds good. I'll close this one

@Sticksman Sticksman closed this Aug 24, 2023
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

Successfully merging this pull request may close these issues.

3 participants