Hi, By default, the path was being referred to /metrics as expected. I have updated the job with Metrics_path: '/metrics' in the configuration as well..Still, I am facing the issue. Do you have any other thoughts?
On Tuesday, February 4, 2020 at 8:59:53 PM UTC+5:30, 李国忠 wrote: > > > Check whether the path configuration is the default "/ metrics". If not, > you need to specify it manually. Metrics_path: 'your path' > > 在 2020年2月3日星期一 UTC+8下午7:32:09,Radhika Thomas写道: >> >> Hi, >> >> To get the microprofile metrics in prometheus, updated the prometheus >> configuration file with new job for the API. >> >> - job_name: 'myapi' >> scheme: 'http' >> tls_config: >> insecure_skip_verify: false >> kubernetes_sd_configs: >> - role: service >> relabel_configs: >> - source_labels: [__meta_kubernetes_service_annotation_myapi] >> action: keep >> regex: true >> >> >> Followed all the steps as per the below page. >> >> https://dzone.com/articles/prometheus-metrics-for-microprofile-microservices >> >> >> But facing the below error now. >> >> Get http://<service_name>:9080/metrics: read tcp <IP>:<port>-><IP>:9080: >> *read: connection reset by peer* >> >> >> Could anyone help on fixing this? >> >> -- 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/58522d98-59cb-499a-b8ff-e02a892d18d3%40googlegroups.com.

