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.

β€”