Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #48 from Jahia/PAAS-1228
Browse files Browse the repository at this point in the history
PAAS-1228: fix datadog hostname for ES nodes
  • Loading branch information
laurentfufu authored Oct 6, 2020
2 parents 57f36e2 + 6b6b896 commit 8c49628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unomi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ actions:
setupDatadogAgentEs:
cmd[${this}]: |-
DD_API_KEY=$(sed -n 's/DATADOGAPIKEY=\(.*\)/\1/p' < /.jelenv) bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)"
echo "hostname: es.${this}" >> /etc/datadog-agent/datadog.yaml
echo "hostname: es.$(hostname | sed 's/node\([0-9]*\).*/\1/g')" >> /etc/datadog-agent/datadog.yaml
sed -i 's/# logs_enabled: false/logs_enabled: true/' /etc/datadog-agent/datadog.yaml
echo "tags:" >> /etc/datadog-agent/datadog.yaml
echo " - product:unomi" >> /etc/datadog-agent/datadog.yaml
Expand Down
2 changes: 1 addition & 1 deletion update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ actions:
setupDatadogAgentEs:
cmd[${this}]: |-
DD_API_KEY=$(sed -n 's/DATADOGAPIKEY=\(.*\)/\1/p' < /.jelenv) bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)"
echo "hostname: es.${this}" >> /etc/datadog-agent/datadog.yaml
echo "hostname: es.$(hostname | sed 's/node\([0-9]*\).*/\1/g')" >> /etc/datadog-agent/datadog.yaml
sed -i 's/# logs_enabled: false/logs_enabled: true/' /etc/datadog-agent/datadog.yaml
echo "tags:" >> /etc/datadog-agent/datadog.yaml
echo " - product:unomi" >> /etc/datadog-agent/datadog.yaml
Expand Down

0 comments on commit 8c49628

Please sign in to comment.