My prometheus is deployed via helm-charts <https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#kube-prometheus-stack>
# kubectl get po -n monitor NAME READY STATUS RESTARTS AGE alertmanager-prometheus-stack-kube-prom-alertmanager-0 2/2 Running 8 (19d ago) 74d prometheus-prometheus-stack-kube-prom-prometheus-0 2/2 Running 9 (19d ago) 74d prometheus-stack-grafana-56b797cc96-sgspf 2/2 Running 8 (19d ago) 74d prometheus-stack-kube-prom-operator-cfbf6c47f-mjr6m 1/1 Running 4 (19d ago) 74d prometheus-stack-kube-state-metrics-67889f75bd-tl6k7 1/1 Running 4 (19d ago) 74d prometheus-stack-prometheus-node-exporter-r77qj 1/1 Running 4 (19d ago) 74d I started the example <https://github.com/prometheus/client_golang/blob/master/examples/simple/main.go> through go run, and I know that scrape_configs needs to be modified. My question is: 1. It seems that I need to encapsulate the program into a mirror image and add a new crawl through PodMonitor/ServiceMonitor? Must it be packaged as a mirror image? 2. How to automatically modify scrape_configs, if I want to manually, which pod should I exec to? -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d36486e2-7a68-4c07-b5e5-f60b8b1ff688n%40googlegroups.com.

