1.使用默认服务发现,controller yaml加入annotation:  annotations:    prometheus.io/path: /metrics 
   prometheus.io/port: "9104" 
   prometheus.io/scrape: "true"
2.使用ServiceMonitor 
 a)注意matchLabels要和describe service的Labels匹配, 可通过命令查看    kubectl get pod ${pod} -ojsonpath='{.metadata.labels}'  b)port是service的Port名称,不是数字端口 
3.使用PodMonitor 
 a)注意matchLabels要和describe pod的Labels匹配, 可通过命令查看    kubectl get pod ${pod} -ojsonpath='{.metadata.labels}'
4.使用自定义服务发现