ensure name uniformity for elascticsearch and telegraf/grafana

This commit is contained in:
m0duspwnens
2020-03-17 09:18:00 -04:00
parent ad0aa85e79
commit cd84f87581
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@
logfile = "/var/log/telegraf/telegraf.log"
## Override default hostname, if empty use os.Hostname()
hostname = "{{ grains.id }}"
hostname = "{{ grains.host }}"
## If set to true, do no set the "host" tag in the telegraf agent.
omit_hostname = false

View File

@@ -28,4 +28,4 @@ fi
echo "Applying cross cluster search config..."
curl -s -XPUT http://{{ ES }}:9200/_cluster/settings \
-H 'Content-Type: application/json' \
-d "{\"persistent\": {\"search\": {\"remote\": {\"{{ grains.id }}\": {\"seeds\": [\"127.0.0.1:9300\"]}}}}}"
-d "{\"persistent\": {\"search\": {\"remote\": {\"{{ grains.host }}\": {\"seeds\": [\"127.0.0.1:9300\"]}}}}}"