Skip to content

Commit

Permalink
core/tracker: detect inconsistent partial signed data (#1343)
Browse files Browse the repository at this point in the history
Track inconsistent partial signature data in tracker.

- Distinguish between insufficient and inconsistent partial signatures when duty failed in parsigdb.
- Log and instrument when multiple partial signed datas detected.

category: feature
ticket: #1342
  • Loading branch information
corverroos committed Oct 25, 2022
1 parent 6d1ba91 commit 830613d
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 276 deletions.
47 changes: 0 additions & 47 deletions core/tracker/component_string.go

This file was deleted.

11 changes: 9 additions & 2 deletions core/tracker/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,20 @@ var (
Namespace: "core",
Subsystem: "tracker",
Name: "failed_duties_total",
Help: "Total number of failed duties by type and component",
}, []string{"duty", "component"})
Help: "Total number of failed duties by type",
}, []string{"duty"})

unexpectedEventsCounter = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: "core",
Subsystem: "tracker",
Name: "unexpected_events_total",
Help: "Total number of unexpected events by peer",
}, []string{"peer"})

inconsistentCounter = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: "core",
Subsystem: "tracker",
Name: "inconsistent_parsigs_total",
Help: "Total number of duties that contained inconsistent partial signed data by duty type",
}, []string{"duty"})
)
Loading

0 comments on commit 830613d

Please sign in to comment.