新增prometheus采集

自动发现监控

已实现采样接口逻辑的资源,可通过annotation标签自动将其加入监控

  • Pod资源
    • prometheus.io/scrape=true     
    • prometheus.io/path=/metric
    • prometheus.io/port=8080
  • Service资源
    • prometheus.io/probe
  • Endpoint资源
    • prometheus.io/scrape
    • prometheus.io/path
    • prometheus.io/port
原文地址:https://www.cnblogs.com/gavin11/p/14137028.html