Skip to content

Rate this page
☆ ☆ ☆ ☆ ☆
Thanks for your feedback
Thank you! The feedback has been submitted.

Get free database assistance or contact our experts for personalized support.

Preview environment variables

Preview features

The variables on this page are in preview and can change in future releases. Use them for testing only, not in production.

For production-ready configuration options, see Environment variables for PMM Server.

External ClickHouse variables

Variable Description
PMM_CLICKHOUSE_ADDR Host and port of the external ClickHouse database instance
PMM_CLICKHOUSE_DATABASE Database name of the external ClickHouse instance
PMM_CLICKHOUSE_USER Database user
PMM_CLICKHOUSE_PASSWORD Database user password
PMM_CLICKHOUSE_DATASOURCE_USER Read-only database user for the Grafana ClickHouse data source
PMM_CLICKHOUSE_DATASOURCE_PASSWORD Read-only data source user password

Testing external ClickHouse connections

The ClickHouse-related preview variables are useful for testing PMM Server with an external ClickHouse instance:

  1. Set up a test ClickHouse instance.
  2. Configure the connection using the variables above.
  3. Launch PMM Server and verify it connects and stores metrics correctly.
  4. Monitor logs to validate how metrics display.