-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kube_metrics_server config spec (#10509)
* Add kube_metrics_server config spec * Github comments - docs
- Loading branch information
Showing
3 changed files
with
498 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Kube metrics server | ||
files: | ||
- name: kube_metrics_server.yaml | ||
options: | ||
- template: init_config | ||
options: | ||
- template: init_config/openmetrics_legacy | ||
- template: instances | ||
options: | ||
- template: instances/openmetrics_legacy | ||
overrides: | ||
prometheus_url.value.example: https://localhost:443/metrics | ||
prometheus_url.display_priority: 1 | ||
prometheus_url.description: | | ||
The URL where your application metrics are exposed by Prometheus. | ||
It could be either the address of the metrics server service or | ||
the address of the pod itself. | ||
**Note**: Monitoring an exposed service of the metrics server | ||
that is backed by more than one pod could lead to inaccurate metrics | ||
because of load balancing. In this case, it is recommended to | ||
enable endpoint checks alongside the service check and use Autodiscovery | ||
to get the pod IP by setting `prometheus_url` to https://%%host%%:443/metrics |
Oops, something went wrong.