Skip to content

Practice Exercise 2

Practice Exercise: Installing Node Exporter and Docker Container Exporter

Objective: Install and configure Node Exporter to collect system metrics and Docker Container Exporter to monitor Docker container metrics on your host.

Instructions:

1. Install Node Exporter:

  • Use the package manager (e.g., apt, yum, zypper) to install Node Exporter on your bare instance. You may search online for the documentation on how to install the Node Exporter on your instance.

2. Configure Node Exporter:

  • Edit the Node Exporter configuration file to specify the collector options and settings.

  • The configuration file is typically located at /etc/prometheus/node_exporter.yml. Customize it based on your requirements.

3. Start Node Exporter:

  • Start the Node Exporter service.

4. Export the node exporter to scrape configs from the host

  • Edit the Prometheus configuration file to enable scraping metrics from a host with Node Exporter installed. or you may download this config yaml file and edit it from there.

  • wget https://github.com/RobssR/Mon1/blob/main/config-map.yaml

5. Verify Integration:

  • Check the Prometheus Targets page to verify that the Node Exporter target is added.

    Visit http://<initials>-prom.acad.opswerks.net/targets in a web browser.

  • You should see a target named node-exporter with the status UP.