Enable TagMapper plugin in Harvest #3799
rahulguptajss
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The TagMapper plugin is designed to convert volume tags to labels. By default, this feature is disabled and is supported via the REST Collector.
To enable this feature in Harvest, follow the steps below:
Harvest Installation Type: Native/deb/rpm
Step 1: Create
custom.yamlLet's assume Harvest is installed in
/opt/harvestdirectory. Adjust paths as needed.Update the file with the following content:
Step 2: Restart Harvest pollers
Harvest Installation Type: NABox4
Step 1: Create
custom.yamlNavigate to the
restdirectory:cd /etc/nabox/harvest/user/restCreate custom.yaml:
Update the file with the following content:
mkdir -p /etc/nabox/harvest/user/rest/9.14.0 cp /data/packages/harvest/conf/rest/9.14.0/volume.yaml /etc/nabox/harvest/user/rest/9.14.0/custom_volume.yaml sed -i 's/^# - TagMapper/ - TagMapper/' /etc/nabox/harvest/user/rest/9.14.0/custom_volume.yamlmkdir -p /etc/nabox/harvest/user/rest/9.12.0 cp /data/packages/harvest/conf/rest/9.12.0/volume.yaml /etc/nabox/harvest/user/rest/9.12.0/custom_volume.yaml sed -i 's/^# - TagMapper/ - TagMapper/' /etc/nabox/harvest/user/rest/9.12.0/custom_volume.yamlStep 2: Restart NABox containers
Metrics should look like below in prometheus.
Note: If you prefer not to publish all tags as labels, you can modify the
TagMapperplugin in thecustom_volume.yamlfile. By adding only the relevant tags to this configuration, only those tags will be exported.Beta Was this translation helpful? Give feedback.
All reactions