简体   繁体   中英

Prometheus Grafana

I can connect the prometheus server running as a docker image on Grafana to display monitoring of some components like cpu usage, memory etc but how to connect a system running on port 8080 to be scraped by prometheus on Grafana

You have 2 options:

  • running the prometheus/grafana stack using 'host' network mode so they can access your service running on localhost port 8080
  • have a 'monitoring' external network where all containers could reach each other

I prefer the latter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM