You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(prometheus.exporter.postgres): Update to version 0.19.0 and expose new collectors settings (#4640)
#### PR Description
Update the `postgres_exporter` to version
[v0.19.0](https://github.com/prometheus-community/postgres_exporter/releases/tag/v0.19.0)
(but continue to use our
[fork](https://github.com/grafana/postgres_exporter/tree/exporter-package-v0.19.0)).
The update adds support for configuring the `stat_statements` collector
flags, including `limit`, `exclude_databases`, and `exclude_users`.
#### Which issue(s) this PR fixes
Fixes#5502
#### Notes to the Reviewer
#### PR Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to
[x]. -->
- [ ] CHANGELOG.md updated
- [x] Documentation added
- [ ] Tests updated
- [ ] Config converters updated
---------
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
# Fork to grafana repo to address issue with freebsd build tags. This can be removed once https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/42645 is fixed
Copy file name to clipboardExpand all lines: docs/sources/reference/components/prometheus/prometheus.exporter.postgres.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ There are a number of environment variables that aren't recommended for use, as
45
45
Refer to the [`postgres_exporter` repository](https://github.com/prometheus-community/postgres_exporter#environment-variables) for a full list of environment variables.
46
46
{{< /admonition >}}
47
47
48
+
The `prometheus.exporter.postgres` component configures the embedded [`postgres_exporter`](https://github.com/prometheus-community/postgres_exporter) to run with a collection timeout of 10 seconds.
49
+
48
50
By default, the same set of metrics is enabled as in the upstream [`postgres_exporter`](https://github.com/prometheus-community/postgres_exporter/).
49
51
If `custom_queries_config_path` is set, additional metrics defined in the given configuration file will be exposed.
50
52
If `disable_default_metrics` is set to `true`, only the metrics defined in the `custom_queries_config_path` file will be exposed.
@@ -132,10 +134,13 @@ The `stat_statements` block configures the selection of both the query ID and th
132
134
This configuration takes effect only when the `stat_statements` collector is enabled.
133
135
134
136
The following arguments are supported:
135
-
| Name | Type | Description | Default | Required |
0 commit comments