-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support for gathering metrics from prometheus endpoint for the kubelet itself. #1581
Changes from 2 commits
cac5d98
a3c1443
3dd315e
ee90155
3a55e38
6a20339
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,13 @@ instances: | |
### This is the default setting. See next section for legacy clusters. | ||
### | ||
# | ||
# url of the kubelet metrics endpoint | ||
# url of the cadvisor metrics endpoint | ||
# Pass an empty string, or set the cadvisor_port option to disable | ||
# prometheus metrics collection | ||
# prometheus cadvisor metrics collection | ||
# metrics_endpoint: http://10.8.0.1:10255/metrics/cadvisor | ||
# | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it make more sense to have a single config option for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i like the first option better, but it won't be easy to keep retro-compatibility. The second option sounds simpler. We can update the yaml with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMHO the best woud be to have only |
||
# kubelet_metrics_endpoint: http://10.8.0.1:10255/metrics | ||
# | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This ended up being much more straightforward to be able to turn off kublet metrics and/or cadvisor metrics separately by setting the option to I added a deprecated note to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, a deprecation warning would be nice. |
||
# The histogram buckets can be noisy and generate a lot of tags. | ||
# send_histograms_buckets controls whether or not you want to pull them. | ||
# | ||
|
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.
The name of this class is admittedly bad and I'd take any suggestions for renaming. Maybe rename the mixin to
PrometheusScraperMixin
and also havePrometheusScraper
as the standalone version?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.
Your suggestion sounds good to me, you'll need to update a few things (check base,exports, Istio check) for renaming.
I'd say it'd be nice to have but as it's in the
prometheus
module it's not shocking to be named justScraper
.