Skip to content

A prometheus go client (SDK), wrapper Promethues HTTP API. !!!Unstable!!!

License

Notifications You must be signed in to change notification settings

zhangjie2012/promclient-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go.dev reference Go Report Card

prometheus-client-go

a Prometheus go client (SDK), a simple Prometheus HTTP API wrapper.

Progress

  • Query
  • QueryRange
  • QuerySeries
  • QueryLabels
  • QueryLabelValues
  • QueryTargets
  • QueryRules
  • QueryAlerts
  • QueryTargetMetadata
  • QueryMetricMetadata
  • QueryAlertManagers
  • QueryStatusConfig
  • QueryStatusFlags
  • QueryStatusRuntimeInfo
  • QueryStatusBuildInfo
  • QueryStatusTSDB
  • TSDB Admin APIs

Usages

go get github.com/zhangjie2012/promclient-go
import promclient "github.com/zhangjie2012/promclient-go"

c = promclient.NewClient(PrometheusUrl, 0)
c.Query("up", float64(time.Now().Unix()))

About

A prometheus go client (SDK), wrapper Promethues HTTP API. !!!Unstable!!!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages