일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- repository
- Kubeflow
- k8s
- archlinux
- grafana-loki
- Linux
- Octavia
- port open
- nfs-provisioner
- Ansible
- KVM
- yum
- Arch
- cloud-init
- OpenStack
- ubuntu
- pacman
- awx
- HTML
- Kubernetes
- kolla
- terraform
- Docker
- ceph
- kolla-ansible
- i3
- cephadm
- golang
- libvirt
- ceph-ansible
Archives
- Today
- Total
YJWANG
kube-prometheus-stack 에서 별도 service monitor 사용 본문
Helm value에서 아래 값을 false로 바꿔줍니다. 해당 값이 true면 chart 통해서 생성된 monitor만 감지합니다.
## If true, a nil or {} value for prometheus.prometheusSpec.serviceMonitorSelector will cause the
## prometheus resource to be created with selectors based on values in the helm deployment,
## which will also match the servicemonitors created
##
serviceMonitorSelectorNilUsesHelmValues: false
이후 service monitor를 생성하면
root@yjwang0-k8s-01:~# kubectl get servicemonitors.monitoring.coreos.com
NAME AGE
postgres-exporter-prometheus-postgres-exporter 3h17m
자동으로 prometheus target이 추가됩니다.
반응형