2023-03-20 16:54:01 +01:00
# Prometheus Node Exporter
2023-03-17 23:13:30 +01:00
This playbook can configure [Prometheus Node Exporter ](https://github.com/prometheus/node_exporter ).
2023-03-20 16:54:01 +01:00
2023-03-17 23:13:30 +01:00
## Configuration
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation ](../installing.md ) process:
```yaml
########################################################################
# #
2023-03-19 09:14:24 +01:00
# prometheus-node-exporter #
2023-03-17 23:13:30 +01:00
# #
########################################################################
prometheus_node_exporter_enabled: true
2023-03-20 16:54:01 +01:00
2023-03-18 09:21:00 +01:00
prometheus_node_exporter_hostname: mash.example.com
prometheus_node_exporter_path_prefix: /metrics/node-exporter
2023-03-20 16:54:01 +01:00
2023-03-17 23:13:30 +01:00
prometheus_node_exporter_basicauth_user: your_username
prometheus_node_exporter_basicauth_password: your password
########################################################################
# #
2023-03-19 09:14:24 +01:00
# /prometheus-node-exporter #
2023-03-17 23:13:30 +01:00
# #
########################################################################
```
2023-03-18 09:21:00 +01:00
## Usage
After you installed the node exporter, your node stats will be available on `mash.example.com/metrics/node-exporter` with basic auth credentials you configured
2023-03-20 16:54:01 +01:00
To integrate Prometheus Node Exporter with a locally installed [Prometheus ](prometheus.md ) service, see the [Integrating with Prometheus Node Exporter ](prometheus.md#integrating-with-prometheus-node-exporter ) section of the documentation.