Skip to content

Commit

Permalink
Merge switch for 'c' and 'a' flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnenauha committed Aug 1, 2019
1 parent 9f07234 commit dc01100
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions varnish.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ func ScrapeVarnishFrom(buf []byte, ch chan<- prometheus.Metric) ([]byte, error)

var metricType prometheus.ValueType
switch flag {
case "a":
metricType = prometheus.CounterValue
case "c":
case "c", "a":
metricType = prometheus.CounterValue
case "g":
metricType = prometheus.GaugeValue
Expand Down

0 comments on commit dc01100

Please sign in to comment.