Skip to content

Commit

Permalink
Update exporter to also get connector status at top level
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Brier <[email protected]>
  • Loading branch information
atrbgithub and tim-summerton-brier committed Oct 12, 2020
1 parent fcae894 commit 3072b7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ func (m *Metrics) Update() error {
"worker": "-1",
}).Inc()
}
m.With(prom.Labels{
"connector": conn,
"state": connStatus.Connector.State,
"worker": "toplevel:" + connStatus.Connector.WorkerID,
}).Inc()
for _, tStatus := range connStatus.Tasks {
m.With(prom.Labels{
"connector": conn,
Expand Down

0 comments on commit 3072b7a

Please sign in to comment.