monitoring: add prometheus-kube-state-metrics
This commit is contained in:
@@ -13,3 +13,5 @@ sops -e deploy/alloy/global/secrets.dec.yaml > deploy/alloy/global/secrets.yaml
|
|||||||
``` bash
|
``` bash
|
||||||
http://localhost:9090/agent
|
http://localhost:9090/agent
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## prometheus - kube-state-metrics
|
||||||
|
|||||||
@@ -255,20 +255,18 @@ alloy:
|
|||||||
|
|
||||||
|
|
||||||
extraEnv:
|
extraEnv:
|
||||||
- name: NODE_IP
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: status.hostIP
|
|
||||||
|
|
||||||
- name: CLUSTER_NAME
|
- name: CLUSTER_NAME
|
||||||
value: casa
|
value: casa
|
||||||
- name: ZONE
|
- name: ZONE
|
||||||
value: casa-vlan
|
value: casa-vlan
|
||||||
|
|
||||||
- name: LOKI_URL
|
- name: LOKI_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: alloy-global
|
name: alloy-global
|
||||||
key: loki_url
|
key: loki_url
|
||||||
|
|
||||||
- name: PROMETHEUS_URL
|
- name: PROMETHEUS_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: prometheus-kube-state-metrics
|
||||||
|
spec:
|
||||||
|
interval: 1m
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: casa
|
||||||
|
namespace: casa-limbosolutions-com
|
||||||
|
path: services/monitoring/deploy/prometheus
|
||||||
|
prune: true
|
||||||
|
decryption:
|
||||||
|
provider: sops
|
||||||
|
secretRef:
|
||||||
|
name: flux-sops-age
|
||||||
@@ -2,7 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
resources:
|
resources:
|
||||||
- alloy-app-sync.yaml
|
- flux-kustomization-alloy.yaml
|
||||||
|
- flux-kustomization-prometheus.yaml
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: flux-sops-age
|
- name: flux-sops-age
|
||||||
files:
|
files:
|
||||||
|
|||||||
Reference in New Issue
Block a user