Thanks for you advice. Yes, the VMs are outside the cluster.
For adding additional scrape configs, what file specifically shall I update? 
Are you using stable/prometheus-operator Helm chart to deploy Prometheus as 
well?

> On Jun 11, 2020, at 9:01 PM, 赵一晗 <[email protected]> wrote:
> 
> There are two ways to solve this problem:
> 1. servicemoniors;
>     You can create a corresponding crd servicemonior 
> 2. additionalScrapeConfigs
>      you could  add additionalScrapeConfigs to your prometheus
> 
> If the additional collection point is outside the cluster ,I think the second 
> one  additionalScrapeConfigs is more suitable,vice versa
> 在 2020年6月12日星期五 UTC+8上午5:18:33,Zhang Zhao写道:
> Background: 
> 
> I have installed Prometheus on AKS using the helm chart 
> stable/prometheus-operator.
> 
> The Problem:
> 
> I had couple of VMs (Linux and Windows), where node exporter and wmi exporter 
> had installed that need to connect to the Prometheus running on Kubernetes. I 
> cannot figure out how to add scrape targets to the Prometheus server. The 
> prometheus.io <http://prometheus.io/> site describes how I can mount a 
> prometheus.yml file (which contains a list of scrape targets) to a Prometheus 
> Docker container -- I have done this locally and it works. However, I don't 
> know how to specify scrape targets for a Prometheus setup installed via 
> Kubernetes-Helm. I am also not clear on how to expose metrics in a Kubernetes 
> Pod.
> 
> 
> 
> 
> 
> Zhang
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/78ac1367-4cf4-428f-9471-22281779bdc7o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/prometheus-users/78ac1367-4cf4-428f-9471-22281779bdc7o%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/33E8DD7C-9C26-431E-BBAE-3B1769793DFE%40gmail.com.

Reply via email to