-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding template label #208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @spearcrow for filing this PR. I left some comments inline.
'template': GaugeMetricFamily( | ||
'pve_template', | ||
'Whether or not the VM/CT is template', | ||
labels=['id']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a new metric. Judging from the feature request #199 I believe that a new label should be added on the existing pve_guest_info
metric.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just try to add the template
key into the labels
array instead? Look for that a couple of lines further down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I've update the template key as labels in pve_guest_info.
I'm sorry if there is any mistake in my code, because I'm not a developer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect. Thanks, this is working well against my cluster.
Hi, I want to add template label for this issue #199
Can you check it?