Skip to content

Commit

Permalink
Add kube_metrics_server config spec (#10509)
Browse files Browse the repository at this point in the history
* Add kube_metrics_server config spec

* Github comments - docs
  • Loading branch information
khewonc authored Nov 12, 2021
1 parent e659ff2 commit bfe5f7d
Show file tree
Hide file tree
Showing 3 changed files with 498 additions and 12 deletions.
22 changes: 22 additions & 0 deletions kube_metrics_server/assets/configuration/spec.yaml
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
Loading

0 comments on commit bfe5f7d

Please sign in to comment.