ansible-collection-prometheus/roles/node_exporter/TROUBLESHOOTING.md
Paweł Krupa (paulfantom) dcfbfa84d2 initial migration of roles from cloudalchemy
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
2022-09-23 13:29:55 +02:00

1.5 KiB

Troubleshooting

Bad requests (HTTP 400)

This role downloads checksums from the Github project to verify the integrity of artifacts installed on your servers. When downloading the checksums, a "bad request" error might occur.

This happens in environments which (knowningly or unknowling) use the netrc mechanism to auto-login into servers.

Unless netrc is needed by your playbook and ansible roles, please unset the var like so:

$ NETRC= ansible-playbook ...

Or:

$ export NETRC=
$ ansible-playbook ...

node_exporter doesn't report data from textfile collector

There are 3 potential issues why node_exporter doesn't pick up data:

  1. Duplicated metrics across multiple files.
  2. File is not readable by node_exporter process.
  3. Textfile collector is not enabled.

Solving first possibility is out of scope of the role as data is created somewhere else. When creating that data ensure files are readable by node-exp user. To get access to the directory with files your process needs to be in node-exp group.

Lastly ansible role misconfiguration can also lead to data not being picked up. Check if node_exporter textfile collector is enabled in node_exporter_enabled_collectors as follows:

node_exporter_enabled_collectors:
  - textfile:
      directory: "{{ node_exporter_textfile_dir }}"

note_: node_exporter_textfile_dir variable is only responsible for creating a directory not enabling a collector.