Skip to content

Commit

Permalink
Change summaries to histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarranza committed Jun 11, 2018
1 parent 60c0e2e commit 3e0bf85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nomad-exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,18 +273,20 @@ var (
},
)

apiLatencySummary = prometheus.NewSummaryVec(prometheus.SummaryOpts{
apiLatencySummary = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: namespace,
Name: "api_latency_seconds",
Help: "nomad api latency for different queries",
Buckets: prometheus.ExponentialBuckets(0.00025, 2, 12),
},
[]string{
"query",
})
apiNodeLatencySummary = prometheus.NewSummaryVec(prometheus.SummaryOpts{
apiNodeLatencySummary = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: namespace,
Name: "api_node_latency_seconds",
Help: "nomad api latency for different nodes and queries",
Buckets: prometheus.ExponentialBuckets(0.00025, 2, 12),
},
[]string{
"node",
Expand Down

0 comments on commit 3e0bf85

Please sign in to comment.