Kubernetes Service Discovery in Prometheus

Prometheus seems to be the most popular monitoring system for kubernetes these days. It is impossibile for us to use static scrape targets in prometheus config for kubernetes metrics, as things varies all the time in kubernetes. That’s where service discovery comes in. Prometheus provides service discovery for kubernetes node, service, pod, endpoint and ingress. Take pod as example, we can pull from all the pods in kubernetes by put this in config:

Docker Registry Authentication

docker registry 认证流程 参考: https://docs.docker.com/registry/spec/auth/token/ 最近在使用harbor的过程中,定位了一个docker认证相关的问题,期间因为对docker registry的认证流程不