node_exporter version:
node_exporter, version 1.3.0 (branch: HEAD, revision: c65f870ef90a4088210af0319498b832360c3366)
build user: root@4801f8f250a6
build date: 20211118-16:34:14
go version: go1.17.3
platform: linux/amd64
node_exporter command line flags
[Unit]
Description=Node Exporter
After=network.target
[Service]
User=node_exporter
Group=node_exporter
ExecStart=/usr/local/bin/node_exporter \
--collector.processes \
--collector.textfile.directory="/var/lib/node_exporter/textfile_collector" \
--web.disable-exporter-metrics \
--web.listen-address="0.0.0.0:9100"
[Install]
WantedBy=multi-user.target
Are you running node_exporter in Docker?
Nope.
What did you do that produced an error?
Added the commandline flag '--web.disable-exporter-metrics', that disables promhttp_, process_, go_ metrics.
What did you expect to see?
The following metric should not be printed:
# HELP promhttp_metric_handler_errors_total Total number of internal errors encountered by the promhttp metric handler.
# TYPE promhttp_metric_handler_errors_total counter
promhttp_metric_handler_errors_total{cause="encoding"} 0
promhttp_metric_handler_errors_total{cause="gathering"} 0