Monitoring

    prometheus relabeling

    Prometheus relabeling 설명 https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config kubernetes_sd_config에는 role이 여러가지 존재합니다. node service pod endpoints endpointslice ingress 각 role마다 사용할 수 있는 meta label이 다릅니다. Servicemonitor를 이용하면 role이 endpoints로 지정되는데, https://prometheus..

    Prometheus in kubernetes

    1. Prometheus와 kubernetes Kubernetes 모니터링에서 가장 높은 점유율을 보여주는 tool은 Prometheus입니다. Prometheus는 CNCF 재단의 2번째 graduate 프로젝트입니다. Kubernetes component들이 노출하는 metric 형식 또한 prometheus metric 형식입니다. 따라서 Gitlab, jenkins, argocd, nginx-ingress, keycloak 등 많은 오픈소스 프로젝트에서 자신들의 메트릭을 prometheus metric 형식에 맞게 지원하고 있습니다. ( Kubernetes에 최적화가 잘 되어있고, 많은 오픈소스에서 공식 지원하는 만큼 prometheus를 잘 활용하면 아주 많은 것들을 할 수 있습니다. ) 2. ..