diff --git a/nomad-exporter.go b/nomad-exporter.go index b32bdf0..a3b55d7 100644 --- a/nomad-exporter.go +++ b/nomad-exporter.go @@ -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",