![]() ![]() # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. ![]() # scrape_timeout is set to the global default (10s). Default is every 1 minute.Įvaluation_interval: 15s # Evaluate rules every 15 seconds. Scrape_interval: 15s # Set the scrape interval to every 15 seconds. The change is that there is a “job_name” added called “node” and it lives on “ localhost:9100” which is the default port number for the node exporter. Here is what my promethus.yml file looks like after adding in the node exporter. Since the node exporter runs on a well-known port, we simply tell prometheus which port to talk to, then restart prometheus to pick up the new information. To teach the prometheus server about the node exporter, we need to edit the promethus.yml file to tell prometheus how to reach the node exporter. We now have both a prometheus server and a node exporter, but they are totally independent processes. INFO Listening on :9100 source="node_exporter.go:170"" INFO - time source="node_exporter.go:104" INFO - textfile source="node_exporter.go:104" INFO - netdev source="node_exporter.go:104" INFO - meminfo source="node_exporter.go:104" INFO - loadavg source="node_exporter.go:104" INFO - filesystem source="node_exporter.go:104" INFO - diskstats source="node_exporter.go:104" INFO - boottime source="node_exporter.go:104" INFO Enabled collectors: source="node_exporter.go:97" $ cd /Users/gary.little/Downloads/node_exporter-0.18.1.darwin-amd64 Start by downloading the pre-compiled darwin node exporter from prometheus.io As in Linux the OS exporter is simply called “node exporter”. The easiest thing to do is add the scraper to monitor OS-X itself. Prometheus itself does not do much apart from monitor itself, to do anything useful we have to add a scraper/exporter module. Prometheus web-ui Add a collector/scraper to monitor the OS From a local browser, point to localhost:9090.$ cd /Users/gary.little/Downloads/prometheus-2.16.0-rc.0.darwin-amd64 Run the prometheus binary, from the command line, it will listen on port 9090.Unzip the binary and cd into the directory.Download the compiled prometheus binaries from prometheus.io.How to install Prometheus on OS-X Install prometheus ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |