Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion 4-nomad/shared/config/consul.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ ports {

connect {
enabled = true
}
}

telemetry {
prometheus_retention_time = "24h"
disable_hostname = true
}
7 changes: 6 additions & 1 deletion 4-nomad/shared/config/consul_client.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ acl {

ports {
grpc = 8502
}
}

telemetry {
prometheus_retention_time = "24h"
disable_hostname = true
}
8 changes: 8 additions & 0 deletions 4-nomad/shared/config/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ vault {
token = "VAULT_TOKEN"
}

# Enable metrics collection
telemetry {
collection_interval = "1s"
disable_hostname = true
prometheus_metrics = true
publish_allocation_metrics = true
publish_node_metrics = true
}
9 changes: 9 additions & 0 deletions 4-nomad/shared/config/nomad_client.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ vault {
enabled = true
address = "http://active.vault.service.consul:8200"
}

# Enable metrics collection
telemetry {
collection_interval = "1s"
disable_hostname = true
prometheus_metrics = true
publish_allocation_metrics = true
publish_node_metrics = true
}