Skip to content

Regularly request the ngx status interface to get data stored in influxdb

Notifications You must be signed in to change notification settings

atdevp/ngx-metric-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngx-metric-client

Regularly request the ngx status interface to get data stored in influxdb.

Configuration

  • Interval: Request ngx status interval time.
  • Expirtime: The maximum time the local cache retains the key.
  • InfluxAddr: Influxdb address. For example: http://127.0.0.1:8086
  • InfluxDB: Database.
  • NgxAddr: Ngx status. For example: http://127.0.0.1/status
  • NgxDomain: Ngx domain. For example: api.test.com

Installation

It is a golang project

# set $GOPATH and $GOROOT
mkdir -p $GOPATH/src/github.com/
cd $GOPATH/src/github.com/
git clone https://github.com/atdevp/ngx-metric-client.git
cd ngx-metric-client
go get
./control build
./control start

# goto influxdb to select data

Todolist

  1. alarm
  2. web

About

Regularly request the ngx status interface to get data stored in influxdb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published