Skip to content

Commit

Permalink
Forgot to set allocation role.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Oct 11, 2023
1 parent ea94d35 commit 99ff751
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metalCollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ func (collector *metalCollector) Collect(ch chan<- prometheus.Metric) {
)

if m.Allocation != nil {
if m.Allocation.Role != nil {
role = *m.Allocation.Role
}

if m.Allocation.Hostname != nil {
hostname = *m.Allocation.Hostname
}
Expand Down

0 comments on commit 99ff751

Please sign in to comment.