Skip to content

Commit

Permalink
fix(monitoring): add braces to var used in telegraf.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Nov 7, 2024
1 parent 78814ba commit 6ad6cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion instances/modules/common/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ resource "aws_instance" "server" {
# Altera o hostname antes de instalar o telegraf
"sudo hostnamectl set-hostname --transient --static ${var.instance_name}",
# Configura a variável que será usada no telegraf
"echo 'export INFLUXDB_TOKEN=\"${var.influxdb_token}\"' >> /etc/profile.d/influxdb_token.sh",
"export INFLUXDB_TOKEN=${var.influxdb_token}",
"echo 'export INFLUXDB_TOKEN=${var.influxdb_token}' >> ~/.bashrc",
# Inicia a configuração do monitoramento
"cd /home/ubuntu/monitoring/",
"sudo chmod +x install-telegraf.sh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
# # local_address = ""
#
# ## Token for authentication.
token = "$INFLUXDB_TOKEN"
token = "${INFLUXDB_TOKEN}"
#
# ## Organization is the name of the organization you wish to write to.
organization = "NOSSAS"
Expand Down

0 comments on commit 6ad6cc6

Please sign in to comment.