File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
ARG ARCH="amd64"
2
2
ARG OS="linux"
3
3
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:glibc
4
+ LABEL maintainer="Trey Dockendorf <treydock@gmail.com>"
4
5
ARG ARCH="amd64"
5
6
ARG OS="linux"
6
7
COPY .build/${OS}-${ARCH}/ssh_exporter /ssh_exporter
Original file line number Diff line number Diff line change @@ -72,6 +72,16 @@ Example of running the Docker container
72
72
docker run -d -p 9312:9312 -v "ssh_exporter.yaml:/ssh_exporter.yaml:ro" treydock/ssh_exporter
73
73
```
74
74
75
+ Example of running the Docker container and making SSH private key available.
76
+ This requires setting ` private_key ` value to ` /.ssh/id_rsa ` .
77
+
78
+ ```
79
+ docker run -d -p 9312:9312 \
80
+ -v "ssh_exporter.yaml:/ssh_exporter.yaml:ro" \
81
+ -v "/home/prometheus/.ssh/id_rsa:/.ssh/id_rsa:ro" \
82
+ treydock/ssh_exporter
83
+ ```
84
+
75
85
## Install
76
86
77
87
Download the [ latest release] ( https://github.com/treydock/ssh_exporter/releases )
Original file line number Diff line number Diff line change 1
1
[Unit]
2
- Description =Prometheus ssh_exporter
2
+ Description =Prometheus SSH Exporter
3
3
Wants =basic.target
4
4
After =basic.target network.target
5
5
6
6
[Service]
7
7
User =ssh_exporter
8
8
Group =ssh_exporter
9
- ExecStart =/usr/local/bin/ssh_exporter --config.file =/etc/ssh_exporterssh_exporter .yaml
9
+ ExecStart =/usr/local/bin/ssh_exporter --config.file =/etc/ssh_exporter .yaml -- web.listen-address =:9312
10
10
ExecReload =/bin/kill -HUP $MAINPID
11
11
KillMode =process
12
12
Restart =always
You can’t perform that action at this time.
0 commit comments