Skip to content

Commit

Permalink
api: add chain index id to prometheus response
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Feb 8, 2024
1 parent 9a248e5 commit 3749f0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ func (cs ConsensusState) PrometheusMetric() []prometheus.Metric {
}(),
},
{
Name: "hostd_consensus_state_index",
Value: float64(cs.ChainIndex.Height),
Name: "hostd_consensus_state_index",
Labels: map[string]any{"id": cs.ChainIndex.ID},
Value: float64(cs.ChainIndex.Height),
},
}
}
Expand Down

0 comments on commit 3749f0a

Please sign in to comment.