Skip to content

bzp2010/opengauss_exporter

Repository files navigation

E2E Test Deploy Documents

openGauss Server Exporter

Prometheus exporter for openGauss server metrics.

CI Tested openGauss versions: 2.0.1 2.1.0

Building and running

  1. install Golang 1.14+
  2. move config.yaml.example to config.yaml and edit it
  3. 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

Edit Config

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

Document

Go to document website

TODO List

  • Add docker support for deploy
  • Add more metrics for OS status
  • Add more E2E test case
  • Add metrics aggregation analysis
  • Add Grafana Dashboard template

About

A openGauss metric exporter for Prometheus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages