postgresql_metricsο
Collect logs from Postgresql Metrics
{% hint style=βinfoβ %}
Type: postgresql_metrics
{% endhint %}
Sample YAMLο
{% code title=βsources.yamlβ %}
sources:
postgresql_metrics_example:
type: postgresql_metrics
endpoints: ''
route_label: ''
tls:
tls.ca_file: ''
# optional:
# <key>: <value>
{% endcode %}
Fields Referenceο
Below are tables for Base, TLS, and Optional sections. Columns: Key, Label, Type, Default, Required, Depends on, Enum / Notes.
Baseο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
endpoints |
Endpoints |
string |
ββ |
β |
A CSV list of PostgreSQL instances to scrape. Each endpoint must be in the Connection URI format. |
β |
route_label |
Event Routing Label |
string |
ββ |
β |
The label to use in routing these events to a destination. Defaults to source name-type. |
β |
TLSο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
tls.ca_file |
Certificate Authority File |
file_ca_file |
ββ |
β |
Absolute path to an additional CA certificate file. |
β |
Optionalο
Key |
Label |
Type |
Default |
Required |
Enum / Notes |
Depends on |
|---|---|---|---|---|---|---|
description |
Description |
string |
ββ |
β |
The description of the entry. |
β |
exclude_databases |
Exclude Databases |
string |
ββ |
β |
A CSV list of databases to match (by using POSIX Regular Expressions) against the datname column for which you donβt want to collect metrics from. |
β |
include_databases |
Include Databases |
string |
ββ |
β |
A CSV list of databases to match (by using POSIX Regular Expressions) against the datname column for which you want to collect metrics from. |
β |
namespace |
Namespace |
string |
postgresql |
β |
Overrides the default namespace for the metrics emitted by the source. |
β |
scrape_interval_secs |
Scrape Interval Secs |
int |
15 |
β |
The interval between scrapes, in seconds. |
β |