# gaussdb_exporter **Repository Path**: a717138552/gaussdb_exporter ## Basic Information - **Project Name**: gaussdb_exporter - **Description**: GaussDB Exporter based on PostgreSQL Exporter - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-19 - **Last Updated**: 2024-11-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GaussDB Server Exporter Prometheus exporter for GaussDB server metrics. **This Exporter Based on Postgresql Exporter.**
**Thanks For [OpenGauss](https://opengauss.org/zh/) and [PostgreSQL](https://github.com/prometheus-community/postgres_exporter).** ## Building and running > 1. install Golang > 2. move config.yaml.example to config.yaml and edit it > 3. run these commands ```shell $ git clone https://gitee.com/a717138552/gaussdb_exporter.git $ cd gaussdb_exporter $ go build -o gaussdb_exporter main.go $ ./gaussdb_exporter -c config.yaml ``` ## Edit Config ``` server: http: host: 0.0.0.0 port: 9188 # metrics API endpoints tasks: - dsn: "postgresql://db_user:db_pass@host:port/db_name" name: Test Server 1 duration: 5s master: true scrapers: - postgresql_exporter - pg_settings - gs_os_run_info - gs_instance_time - gs_total_memory_detail - gs_sql_count ```