Skip to content

Commit

Permalink
Fix type of counter metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
panchoh authored and iknite committed Feb 19, 2019
1 parent 69e0d20 commit c3e9a18
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,29 +70,29 @@ var (
},
)

Balloon_add_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Balloon_add_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Balloon_add_total",
Help: "Duration of the last call of an example function.",
},
)

Balloon_membership_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Balloon_membership_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Balloon_membership_total",
Help: "Duration of the last call of an example function.",
},
)

Balloon_digest_membership_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Balloon_digest_membership_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Balloon_digest_membership_total",
Help: "Duration of the last call of an example function.",
},
)

Balloon_incremental_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Balloon_incremental_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Balloon_incremental_total",
Help: "Duration of the last call of an example function.",
},
Expand Down Expand Up @@ -127,29 +127,29 @@ var (
},
)

Sender_batches_sent_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Sender_batches_sent_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Sender_batches_sent_total",
Help: "Duration of the last call of an example function.",
},
)

Auditor_batches_received_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Auditor_batches_received_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Auditor_batches_received_total",
Help: "Duration of the last call of an example function.",
},
)

Monitor_batches_received_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Monitor_batches_received_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Monitor_batches_received_total",
Help: "Duration of the last call of an example function.",
},
)

Publisher_batches_received_total = prometheus.NewGauge(
prometheus.GaugeOpts{
Publisher_batches_received_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "Publisher_batches_received_total",
Help: "Duration of the last call of an example function.",
},
Expand Down

0 comments on commit c3e9a18

Please sign in to comment.