Skip to content

Commit

Permalink
Add scrapeDuration to Describe
Browse files Browse the repository at this point in the history
  • Loading branch information
diogonicoleti committed Nov 30, 2017
1 parent 551caee commit 50dd4a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func NewNewRelicCollector(apiKey string) prometheus.Collector {
// It implements prometheus.Collector.
func (c *newRelicCollector) Describe(ch chan<- *prometheus.Desc) {
ch <- c.up
ch <- c.scrapeDuration
}

// Collect fetches the metrics data from the NewRelic application and
Expand Down

0 comments on commit 50dd4a5

Please sign in to comment.