Docs » Supported integrations in Splunk Observability Cloud » Collector components: Receivers » PostgreSQL receiver

PostgreSQL receiver πŸ”—

The PostgreSQL receiver allows the Splunk Distribution of OpenTelemetry Collector to collect metrics from PostgreSQL through its statistics collector. The supported pipeline type is metrics. See Process your data with pipelines for more information.


Use the PostgreSQL receiver in place of the SignalFx Smart Agent postgresql monitor type.

Requirements πŸ”—

This receiver supports PostgreSQL version 9.6 and higher.

To let the receiver collect data, grant the monitoring user SELECT permissions for pg_stat_database.

Get started πŸ”—

Follow these steps to configure and activate the component:

  1. Deploy the Splunk Distribution of OpenTelemetry Collector to your host or container platform:

  2. Configure the PostgreSQL receiver as described in the next section.

  3. Restart the Collector.

Sample configurations πŸ”—

To activate the PostgreSQL receiver, add postgresql to the receivers section of your configuration file, as shown in the following example:

    endpoint: localhost:5432
    transport: tcp
    username: otel
    password: ${POSTGRESQL_PASSWORD}
      - <database_name>
    collection_interval: 10s
      insecure: false
      insecure_skip_verify: false
      ca_file: /home/otel/authorities.crt
      cert_file: /home/otel/mypostgrescert.crt
      key_file: /home/otel/mypostgreskey.key

The username and password fields are mandatory. By default, the receiver searches for a PostgreSQL server at localhost:5432. You can customize the address by editing the value of the endpoint field.

To complete the configuration, include the receiver in the metrics pipeline of the service section of your configuration file. For example:

      receivers: [postgresql]

Settings πŸ”—

The following table shows the configuration options for the PostgreSQL:

Metrics πŸ”—

The following metrics, resource attributes, and attributes are available.

Activate or deactivate specific metrics πŸ”—

You can activate or deactivate specific metrics by setting the enabled field in the metrics section for each metric. For example:

        enabled: true
        enabled: false

The following is an example of host metrics receiver configuration with activated metrics:

            enabled: true


Deactivated metrics aren’t sent to Splunk Observability Cloud.

Troubleshooting πŸ”—

If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.

Available to Splunk Observability Cloud customers

Available to prospective customers and free trial users

  • Ask a question and get answers through community support at Splunk Answers .

  • Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide. To join, see Chat groups in the Get Started with Splunk Community manual.

To learn about even more support options, see Splunk Customer Success .