MetricsHub
MetricsHub Community Connectors 1.0.22
Supported Platforms[1] Connectors Directory[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 |
|
|
| postgresql_database |
|
|
| postgresql_lock |
|
|
| replication |
|
|
metricshub
community
connector
hardware
system
Links:
- [1] ../supported-platforms.html
- [2] ../connectors-directory.html
- [3] tags/community.html
- [4] tags/database.html
- [5] tags/linux.html
- [6] tags/windows.html
- [7] https://github.com/metricshub/community-connectors/tree/main/src/main/connector/database/PostgreSQL/PostgreSQL.yaml
- [8] platforms/postgre-sql.html
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
Searching...
No results.
