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

fix pg_stat_statement query: add queryid to make it unique #87

Closed
wants to merge 10 commits into from
4 changes: 2 additions & 2 deletions charts/postgreslet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.11.0
version: 0.11.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.13.1"
appVersion: "v0.13.1"
5 changes: 5 additions & 0 deletions charts/postgreslet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,10 @@ sidecars:
pg_stat_statements:
# user, datname, query, calls, total_exec_time, rows.
query: "SELECT
distinct
pg_get_userbyid(userid) as user,
pg_database.datname,
pg_stat_statements.queryid,
pg_stat_statements.query,
pg_stat_statements.calls,
pg_stat_statements.total_exec_time as time_milliseconds,
Expand All @@ -437,6 +439,9 @@ sidecars:
- datname:
usage: "LABEL"
description: "The database in which the statement was executed"
- queryid:
usage: "LABEL"
description: "Query ID"
- query:
usage: "LABEL"
description: "Processed query"
Expand Down
Loading