-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[collectd 6] write_prometheus: migration to v6.0 #3861
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
[collectd 6] write_prometheus: migration to v6.0 #3861
Conversation
This would fix the following issues:
PS. You might want to check my "write_prometheus" patch for fixes to "http_handler()": #3917 |
I still need to test this, it's not forgotten. |
I've run this (PR) plugin with v6 code - tested my multiple server entries addition on this and v5. OK by me. |
continue; | ||
} | ||
metric_family_destroy(fam); | ||
metric_family_free(prom_fam); |
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.
After freeing "prom_fam", you cannot loop & use "prom_fam" members any more => you should break out of the loop here.
Changes by "manuelluis" from: collectd#3861 For testing it with "gpu_sysman" plugin label support. Besides moving "write_prometheus" plugin to v6 API, this commit removes the obsolete protobuf support, and adds label support (= fix to related 3 open collectd tickets).
Changes by "manuelluis" from: collectd#3861 For testing it with "gpu_sysman" plugin label support. Besides moving "write_prometheus" plugin to v6 API, this commit removes the obsolete protobuf support, and adds label support (= fix to related 3 open collectd tickets).
Changes by "manuelluis" from: collectd#3861 For testing it with "gpu_sysman" plugin label support. Besides moving "write_prometheus" plugin to v6 API, this commit removes the obsolete protobuf support, and adds label support (= fix to related 3 open collectd tickets).
Changes by "manuelluis" from: collectd#3861 For testing it with "gpu_sysman" plugin label support. Besides moving "write_prometheus" plugin to v6 API, this commit removes the obsolete protobuf support, and adds label support (= fix to related 3 open collectd tickets).
Changes by "manuelluis" from: collectd#3861 For testing it with "gpu_sysman" plugin label support. Besides moving "write_prometheus" plugin to v6 API, this commit removes the obsolete protobuf support, and adds label support (= fix to related 3 open collectd tickets).
I've been running this over a week now [1], and it's been working fine for me too. @mrunge & @elfiesmelfie any chance of getting this in, and closing the related 4 issues? (@manuelluis did not respond to my review comment above, but I can add separate PR for that after this goes in.) [1] with my "gpu_sysman" plugin updated to v6 API. I'll submit PR for that soon, but I'd like this to go in first. |
Changes by "manuelluis" from: collectd#3861 For testing it with "gpu_sysman" plugin label support. Besides moving "write_prometheus" plugin to v6 API, this commit removes the obsolete protobuf support, and adds label support (= fix to related 3 open collectd tickets).
Changes by "manuelluis" from: collectd#3861 For testing it with "gpu_sysman" plugin label support. Besides moving "write_prometheus" plugin to v6 API, this commit removes the obsolete protobuf support, and adds label support (= fix to related 3 open collectd tickets).
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.
Thank you, this looks good to me. Sorry to keep you waiting for so long.
ChangeLog: write_prometheus plugin: migration to v6.0
The protocol-buffer support is removed as it is not supported after prometehus 2.0.