Monitor linux server with grafana8/13/2023 ![]() ![]() Prometheus will be initialized and active in port :9090 we'll add the port :9100 to the list of target to check.Node exporter will collect machine metrics and will export it via a port :9100.scrape_interval : 5s static_configs : - targets : How will it work ? job_name : "node-exporter" # Override the global default and scrape targets from this job every 5 seconds. scrape_interval : 5s static_configs : - targets : # The job name is added as a label `job=` to any timeseries scraped from this config. job_name : "prometheus" # Override the global default and scrape targets from this job every 5 seconds. scrape_configs : # The job name is added as a label `job=` to any timeseries scraped from this config. external_labels : monitor : "codelab-monitor" # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself. # Attach these labels to any time series or alerts when communicating with # external systems (federation, remote storage, Alertmanager). Global : scrape_interval : 15s # By default, scrape targets every 15 seconds. It is one of the "exporters" that Prometheus provide you with, The Node one is used to collect system data, like :Ĭhapter 2 : Understand what is going on Prometheus.yml config file ![]() Prometheus is a time series database used for collecting metrics you would export using an exporter, you can think of it as big monitoring software block that collect multiple sources of metrics from anywhere and then store it time-based and provides you a way to query on these metrics, the goal at the end is to link your big prometheus " monitoring tower " to your Grafana instance Version : "3.8" services : node_exporter : image : quay.io/prometheus/node -exporter :latest container_name : node_exporter command : - "-path.rootfs=/host" network_mode : host # port 9100 is exposed by default pid : host restart : unless -stopped volumes : - "/:/host:ro,rslave" prometheus : image : quay.io/prometheus/prometheus :latest container_name : prometheus network_mode : host volumes : - "./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml" Node exporter ?Īn exporter is software that you installs in your machine, it collect data metrics from something and export it - or make it available for another service to use it for monitoring or analytics purposes in this case Grafana dashboards ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |