json_exporter Target
Customize the default json_exporter target
json_exporter Target
Edit the json_exporter configuration file in the /etc/prometheus/files_sd/stakelocal/other directory.
sudo nano /etc/prometheus/files_sd/stakelocal/other/json_exporter.ymlIt should look like the following.
- targets: ['127.0.0.1:7979']
labels:
host: 'Default Host'
service: 'JSON Exporter'
client: 'JSON Exporter'If this instance of json_exporter is accessible at a different IP address or port, update those in the targets line.
Update the host or service labels, as needed. See About Stake Local Labels for label definitions.
Save the file and exit the editor.
An example target file could look like the following.
- targets: ['127.0.0.1:7979']
labels:
host: 'MacBook'
service: 'JSON Exporter'
client: 'JSON Exporter'Last updated