MetricsHub
MetricsHub Community Connectors 1.0.11
Connectors directory[1] Full listing of connectors[2]
PostgreSQL
Description
Monitors performance and operational metrics for a PostgreSQL database.
community[3] database[4] linux[5] windows[6]
Source[7]
Target
Typical platform: PostgreSQL[8]
Operating systems: Microsoft Windows, Linux
Prerequisites
Leverages: PostgreSQL Database version 17 or higher
Technology and protocols: SQL/JDBC
Examples
CLI
metricshub HOSTNAME -t win -c +PostgreSQL --jdbc -u USER --jdbc-url URL
metricshub.yaml
resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: win
connectors: [ +PostgreSQL ] # Optional, to load only this connector
protocols:
jdbc:
port: <PORT>
database: <DB_NAME>
type: <type>
url: <URL>
username: <USERNAME> # Change with actual credentials
password: <PASSWORD> # Encrypted using metricshub-encrypt
Connector Activation Criteria
The PostgreSQL connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:
- The SQL query below succeeds on the monitored database:
- SQL Query:
SELECT (LOWER(version()) LIKE '%postgresql%')::int AS is_postgresql;
- Expected Result:
1
- SQL Query:
Metrics
Type | Collected Metrics | Specific Attributes |
---|---|---|
postgresql |
|
|
postgressql_database |
|
|
postgressql_lock |
|
|
replication |
|
|
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.