Skip to content

Commit

Permalink
modify metric name
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorva-marisomaradhya committed Jan 27, 2020
1 parent 7373018 commit 7f351bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type spec struct {
var (
githubApiCount = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "github_api_calls",
Help: "Total number of github api calls per hour",
Name: "github_api_calls_remaining",
Help: "Total number of github api calls per hour remaining",
},)
)
func main() {
Expand Down Expand Up @@ -98,7 +98,7 @@ func ApiRateLimit(token string) {
if err != nil {
logrus.Fatalln("No metrics")
}
githubApiCount.Set(float64(rateLimit.Core.Limit - rateLimit.Core.Remaining))
githubApiCount.Set(float64(rateLimit.Core.Remaining))

}()
}

0 comments on commit 7f351bb

Please sign in to comment.