Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Line(s) numberComment
1-5Default scraping config for how often Prometheus should scrape.  Note, these can be overridden for specific scrape configs (see from line 22).
23-29

Prometheus (be default) monitors itself and can report on scrape query duration, samples added to db, data compaction stats etc.

Info

Note that localhost:10090 refers to the Prometheus docker container and not the server.


31-34

Scrape configutation for node_exporter, an exporter which scrape server machine metrics.  We haven't set this up yet but will in the following sections.

Info

Note that 10.0.0.137:10091 refers to the internal IP address of the machine you want to monitor (and the port on which node_exporter is running). 

This is NOT localhost (localhost in this context is the Prometheus Docker container).


36-5750

Scrape configuration for blackbox, a prober that can probe endpoints over HTTP, HTTPS, DNS, TCP and ICMP.  We haven't set this up yet but will in the following sections.

Info

Note that 10.0.0.137:9115 refers to the internal IP address and port of the machine on which blackbox is running on.  We'll be setting up blackbox on a docker container and then exposing port 9115 to the host. 

This is NOT localhost (localhost in this context is the Prometheus Docker container).


...

Info

Note: the internal ip address on line 57 50 must be the actual ip address of our host (not 127.0.0.1 as from the docker image, 127.0.0.1 is the docker image and not the host machine/server).

Add any other endpoints in the targets section of the yml.

...