https://github.com/zhangjie2012/promclient-go
A prometheus go client (SDK), wrapper Promethues HTTP API. !!!Unstable!!!
https://github.com/zhangjie2012/promclient-go
go prometheus prometheus-client
Last synced: 4 months ago
JSON representation
A prometheus go client (SDK), wrapper Promethues HTTP API. !!!Unstable!!!
- Host: GitHub
- URL: https://github.com/zhangjie2012/promclient-go
- Owner: zhangjie2012
- License: mit
- Created: 2021-05-06T09:28:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T08:59:40.000Z (about 5 years ago)
- Last Synced: 2024-06-20T17:43:54.909Z (almost 2 years ago)
- Topics: go, prometheus, prometheus-client
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pkg.go.dev/github.com/zhangjie2012/promclient-go)
[](https://goreportcard.com/report/github.com/zhangjie2012/promclient-go)
# prometheus-client-go
a [Prometheus](https://prometheus.io/) go client (SDK), a simple Prometheus [HTTP API](https://prometheus.io/docs/prometheus/latest/querying/api/) wrapper.
## Progress
- [X] Query
- [X] QueryRange
- [X] QuerySeries
- [X] QueryLabels
- [X] QueryLabelValues
- [X] QueryTargets
- [ ] QueryRules
- [ ] QueryAlerts
- [ ] QueryTargetMetadata
- [ ] QueryMetricMetadata
- [ ] QueryAlertManagers
- [ ] QueryStatusConfig
- [ ] QueryStatusFlags
- [ ] QueryStatusRuntimeInfo
- [ ] QueryStatusBuildInfo
- [ ] QueryStatusTSDB
- [ ] TSDB Admin APIs
## Usages
```
go get github.com/zhangjie2012/promclient-go
```
```go
import promclient "github.com/zhangjie2012/promclient-go"
c = promclient.NewClient(PrometheusUrl, 0)
c.Query("up", float64(time.Now().Unix()))
```