Skip to content

Commit

Permalink
Change test_service metric name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Lucas authored and iknite committed Feb 19, 2019
1 parent ae6299a commit 3e15bf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion cmd/client_membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func newMembershipCommand(ctx *clientContext, clientPreRun func(*cobra.Command,
if eventDigest == "" {
log.Infof("Querying key [ %s ] with version [ %d ]\n", key, version)
digest = hasherF().Do([]byte(key))

} else {
log.Infof("Querying digest [ %s ] with version [ %d ]\n", eventDigest, version)
digest, _ = hex.DecodeString(eventDigest)
Expand Down
10 changes: 5 additions & 5 deletions tests/e2e/test_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ var (
},
)

Qed_store_snapshots_received_total = prometheus.NewCounter(
Qed_store_batches_stored_total = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "qed_store_snapshots_received_total",
Help: "Amount of snapshots received (POST from publishers).",
Name: "qed_store_batches_stored_total",
Help: "Amount of batches received (POST from publishers).",
},
)

Expand All @@ -63,7 +63,7 @@ var (

metricsList = []prometheus.Collector{
Qed_store_instances_count,
Qed_store_snapshots_received_total,
Qed_store_batches_stored_total,
Qed_store_snapshots_retrieved_total,
Qed_store_alerts_generated_total,
}
Expand Down Expand Up @@ -175,7 +175,7 @@ func (s *Service) postBatchHandler() func(http.ResponseWriter, *http.Request) {
atomic.AddUint64(&s.stats.count[RPS], 1)
atomic.AddUint64(&s.stats.count[SNAP], 1)
if r.Method == "POST" {
Qed_store_snapshots_received_total.Inc()
Qed_store_batches_stored_total.Inc()
// Decode batch to get signed snapshots and batch version.
var b protocol.BatchSnapshots
buf, err := ioutil.ReadAll(r.Body)
Expand Down

0 comments on commit 3e15bf1

Please sign in to comment.