Skip to content

DavidLeeUX/codis_status_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codis Metrics Exporter


Prometheus exporter for Codis metrics.<br>
Supports Codis 3.2.2


grafana screenshot

图1

图2

Grafana dashboard is available on github.com.

Building, configuring, and running

Locally build and run it:

    $ go mod tidy
    $ go mod vendor
    $ go build
    $ ./codis_status_exporter <flags>

    OR
    
    $ go mod tidy
    $ go mod vendor
    $ make linux
    $ ./codis_status_exporter <flags>

Add a block to the scrape_configs of your prometheus.yml config file:

scrape_configs:

...

- job_name: codis_exporter
  static_configs:
  - targets: ['localhost:8082']

...