Prometheus exporter for openGauss server metrics.
CI Tested openGauss versions: 2.0.1
2.1.0
- install Golang 1.14+
- move config.yaml.example to config.yaml and edit it
- run these commands
$ git clone https://github.com/bzp2010/opengauss_exporter.git
$ cd opengauss_exporter
$ go build -o opengauss_exporter main.go
$ ./opengauss_exporter serve -c config.yaml
server:
http:
host: 0.0.0.0
port: 9188 # metrics API endpoints
tasks:
- dsn: "postgresql://gaussdb:[email protected]:5432/postgres"
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
- Add docker support for deploy
- Add more metrics for OS status
- Add more E2E test case
- Add metrics aggregation analysis
- Add Grafana Dashboard template