Skip to content

Create Custom Node Metrics

Opentelemetry installs the textfile collector to collect custom metrics that may not be available from other exporters.

For more information visit: Node Exporter Textfile Collectors

You can also view example scripts here: Textfile Collector Scripts

Example custom exporter playbook

ansible-playbook custom_exporters.yml

Example custom exporter playbook with overrides

Confirm inventory.yaml matches what is in /etc/genestack/inventory. If it does not match update the command to match the file names.

# Example overriding things on the CLI
source /opt/genestack/scripts/genestack.rc

Run the playbook

ansible-playbook custom_exporters.yml --private-key ${HOME}/.ssh/openstack-keypair.key

Once the scripts run the node exporter will collect your metrics and supply them to prometheus for you to view.