moelholm / prometheus-spring-boot-starter

Spring Boot Starter for enabling a Prometheus actuator endpoint
54 stars 14 forks source link

Could not see counter_status_200 in metrics #8

Closed wenfei3 closed 6 years ago

wenfei3 commented 6 years ago

hello, this is my first time to use proetheus-spring-boot-starter.I think I encounter a problem.I created a new spring-boot program and run it on my mac for testing proetheus-spring-boot-starter,then I called the interface several times and I could read the counter_status_200_prometheus and counter_status_404_star_star in the metrics

# HELP counter_status_404_star_star counter_status_404_star_star
# TYPE counter_status_404_star_star gauge
counter_status_404_star_star 1.0
# HELP counter_status_200_prometheus counter_status_200_prometheus
# TYPE counter_status_200_prometheus gauge
counter_status_200_prometheus 2.0

but I could not read the same metrics on other spring-boot programs which were running on the linux OS. Who could give me a hand for this question?I'm very pleasure for any suggestion!