2023-09-05 22:44:04 +02:00
# Prometheus SSH Exporter
This playbook can configure [Prometheus SSH Exporter ](https://github.com/treydock/ssh_exporter ).
## Configuration
To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation ](../installing.md ) process:
```yaml
########################################################################
# #
# prometheus-ssh-exporter #
# #
########################################################################
prometheus_ssh_exporter_enabled: true
2024-01-23 17:10:22 +01:00
# To expose the metrics publicly, enable and configure the lines below:
2023-09-05 22:44:04 +02:00
# prometheus_ssh_exporter_hostname: mash.example.com
2024-01-23 17:10:22 +01:00
# prometheus_ssh_exporter_path_prefix: /metrics/mash-prometheus-ssh-exporter
# To protect the metrics with HTTP Basic Auth, enable and configure the lines below.
# See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
# prometheus_ssh_exporter_container_labels_metrics_middleware_basic_auth_enabled: true
# prometheus_ssh_exporter_container_labels_metrics_middleware_basic_auth_users: ''
2023-09-05 22:44:04 +02:00
########################################################################
# #
# /prometheus-ssh-exporter #
# #
########################################################################
```
## Usage
2024-01-23 17:10:22 +01:00
After you've installed the ssh exporter, your ssh prober will be available on `mash.example.com/metrics/mash-prometheus-ssh-exporter` with the basic auth credentials you've configured if hostname and path prefix were provided.