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: Slow Query Collector and Test #839

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sticksman
Copy link
Contributor

Split from #819

Signed-off-by: Felix Yuan <felix.yuan@reddit.com>
SELECT
COUNT(*) AS queries
FROM
pg_catalog.pg_stat_activity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already a pg_stat_activity query in cmd/postgres_exporter/queries.go. Perhaps we should refactor this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in put it in queries.go? The other ones do a set of group bys which we couldn't really shove into this query

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.

None yet

2 participants