diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-04-12 08:39:24 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-04-12 08:39:24 +0000 |
commit | 692f103fe535cd8f3ed20206a3c17cddd151e046 (patch) | |
tree | a02f53412f7ab326867c637a39c9f4044ad2a6c2 /src/conf_mode/system_lcd.py | |
parent | 0b0f991a86461ed725762010cf263fb2f0eaa16a (diff) | |
download | vyos-1x-692f103fe535cd8f3ed20206a3c17cddd151e046.tar.gz vyos-1x-692f103fe535cd8f3ed20206a3c17cddd151e046.zip |
T5152: Get default hostname for telegraf from FQDN or hostname
Fix for Telegraf agent hostname isn't qualified
Try to get the hostname from FQDN and then from the hostname
Used for metrics
You may have more than one machine with different domain names
r1 domain-name foo.local, hostname myhost
r2 domain-name bar.local, hostname myhost
It helps to detect from which exactly host we get metrics for
InfluxDB2
Diffstat (limited to 'src/conf_mode/system_lcd.py')
0 files changed, 0 insertions, 0 deletions