My C# application pushes the metrics to pushgateway using the below code. 

var pusher = new MetricPusher(new MetricPusherOptions 
{ 
  Endpoint = "http://localhost:9091/metrics";, 
  Job = "some_job" 
}); 
pusher.Start();

*prometheus.yml*

- job_name: 'job1'
    honor_labels: true
    static_configs:
      - targets: ['localhost:9091']


We would like to enable https for the pushgateway url. To enable TLS, I 
think scheme &  tls_config should be specified in the prometheus yml file. 
I've few questions:

- Under tls_config,  there are options to specify ca_file and  cert_file & 
key_file in prometheus.yml. Can anyone clarify what has to be mentioned 
here?
- Also, somewhere mentioned about --web.config.file. 
https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md
What is this for?
- Am I right thinking that, there is no code changes to enable TLS for 
pushgateway except changing the pushgateway url to use https?

Thanks

-- 
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/dfb740bd-44a7-46a5-94dc-724f7adc4ecdn%40googlegroups.com.

Reply via email to