-
Notifications
You must be signed in to change notification settings - Fork 137
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
PMM-12155 Use new option name for node_exporter #2186
Conversation
Since the new version of exporter-toolkit used in the node exporter the new option `--web.config.file` should be used instead to pass the TLS configuration.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v3 #2186 +/- ##
==========================================
- Coverage 44.77% 43.44% -1.33%
==========================================
Files 360 362 +2
Lines 36153 44100 +7947
==========================================
+ Hits 16186 19158 +2972
- Misses 18305 23259 +4954
- Partials 1662 1683 +21
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Improve variable declaration formatting.
Add unit test to pass the new option to the exporter and add some slight fixes to the formatting and styling.
@@ -30,7 +30,9 @@ import ( | |||
// The node exporter prior 2.28 use exporter_shared and gets basic auth config from env. | |||
// Starting with pmm 2.28, the exporter uses Prometheus Web Toolkit and needs a config file | |||
// with the basic auth users. | |||
var v2_27_99 = version.MustParse("2.27.99") | |||
var ( | |||
v2_28_00 = version.MustParse("2.28.0-0") |
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.
Btw do you think we should eventually move this to features for consistency?
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.
I think we need to drop it eventually :)
Since the new version of exporter-toolkit used in the node exporter the new option
--web.config.file
should be used instead to pass the TLS configuration.PMM-12155
Link to the Feature Build: SUBMODULES-3284