Skip to content

Commit

Permalink
Merge pull request #5 from sitewards/ADHOC-upgrade-node-exporter
Browse files Browse the repository at this point in the history
ADHOC upgrade node exporter
  • Loading branch information
aboritskiy authored Jul 14, 2020
2 parents 56bf1e7 + 20cf5a6 commit 7a57b75
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This will allow the role to be discovered. Then, add this repo as a submodule:
```
$ cd path/to/playbook/root
$ mkdir roles/
$ git submodule add https://github.com/littlemanco/ansible-role-node-exporter roles/node-exporter
$ git submodule add https://github.com/sitewards/ansible-role-node-exporter roles/node-exporter
```

This should work!
Expand Down
6 changes: 3 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
## The version of the node exporter to download and install. A full list of versions can be found at the following URL:
## https://github.com/prometheus/node_exporter/releases
node_exporter_version: "0.14.0"
node_exporter_version: "0.15.2"

## The architecture that the node exporter supports. The exporter is built for a series of architectures; see the above
## releases link for further details
Expand All @@ -13,10 +13,10 @@ node_exporter_checksum_algorithm: "sha512"

## There are two checksums that matter: The archive, and the binary. The binary is the executable node exporter,
## the archive the thing it's downloaded with.
node_exporter_checksum_binary: "8aa6be677870c8b7dc3c5e1ff5824838c005b5413e2ea7781bd8763ca14c6aba04a0cad4698fc613ef013797821c39405e1566855f0c63495ebb4a2f733f75a7"
node_exporter_checksum_binary: "b2a4c62e33e2414aeb9ee80a3d54dc0ca35922398c528c46dc9b9074d39c8d19737b79abbc1bef64c4a36f36f67fb24073f470f451d93aa035a291726606a970"

## See above
node_exporter_checksum_archive: "8748f88480a2995a8188ed65c5b3f7d80bacac5fd1bde9e7f909299a4eee11479e9cca7fc1654a171b15b50654c92f353e86f24192410f0fcadea3b01c904913"
node_exporter_checksum_archive: "7987aac1fdf892e1f38262db11ce93b2a4a8a71921e733613336e8218c4c37724ba1d694abf94fd74a5b9ea49c75fac3d823b4d3aedb333b6fbc8fe9b6b73307"

## These are the default exporters that are enabled as of v0.14.0. To get a list of the available exporters, run
##
Expand Down
6 changes: 3 additions & 3 deletions templates/etc/systemd/system/node_exporter.service.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=The prometheus node exporter
Documentation=https://github.com/littlemanco/ansible-role-node-exporter
Documentation=https://github.com/sitewards/ansible-role-node-exporter

[Service]

Expand All @@ -10,8 +10,8 @@ Restart=always
# Start the service, bound to localhost. It will be exposed by another service, such as NGINX or stunnel.
ExecStart=/usr/local/bin/node_exporter \
--collector.textfile.directory="{{ node_exporter_textfile_directory }}" \
-web.listen-address="127.0.0.1:9100" \
-collectors.enabled="{{ node_exporter_exporters | join(',') }}"
--web.listen-address="127.0.0.1:9100" \
--collectors.enabled="{{ node_exporter_exporters | join(',') }}"

[Install]

Expand Down

0 comments on commit 7a57b75

Please sign in to comment.