mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-30 21:49:32 +01:00
9307e97c46
* Annotate Prometheus service to scrape metrics from Prometheus itself (enables Prometheus* alerts) * Update kube-state-metrics addon-resizer to 1.7 * Use port 8080 for kube-state-metrics * Add PrometheusNotIngestingSamples alert rule * Change K8SKubeletDown alert rule to fire when 10% of kubelets are down, not 1% * https://github.com/coreos/prometheus-operator/pull/1032
20 lines
388 B
YAML
20 lines
388 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kube-state-metrics
|
|
namespace: monitoring
|
|
annotations:
|
|
prometheus.io/scrape: 'true'
|
|
spec:
|
|
type: ClusterIP
|
|
# service is created to allow prometheus to scape endpoints
|
|
clusterIP: None
|
|
selector:
|
|
name: kube-state-metrics
|
|
phase: prod
|
|
ports:
|
|
- name: metrics
|
|
protocol: TCP
|
|
port: 8080
|
|
targetPort: 8080
|