/terraform-nomad-prometheus

Terraform module setting up a prometheus service on nomad

Primary LanguageHCLMIT LicenseMIT

Requirements

Name Version
terraform >= 1.3.7
nomad >= 1.4.16

Providers

Name Version
nomad >= 1.4.16

Modules

No modules.

Resources

Name Type
nomad_job.this resource

Inputs

Name Description Type Default Required
job_artifact_source_checksum Prometheus release checksum. string n/a yes
job_auto_promote Specifies if the job should auto-promote to the canary version. bool true no
job_auto_revert Specifies if the job should auto-revert to the last stable job. bool true no
job_canary Equal to the count of the task group allows blue/green depl. number 1 no
job_constraint_value The constraint allows restricting the set of eligible nodes. string "compute" no
job_cpu CPU allocation. number 500 no
job_datacenters Specifies the list of DCs to be considered placing this task. list(string)
[
"dc1"
]
no
job_group_count Specifies the number of the task groups running under this one. number 1 no
job_max_parallel Specifies the maximum number of updates to perform in parallel. number 1 no
job_memory Specifies the memory required in MB. number 256 no
job_name Specifies a name for the job. string "prometheus" no
job_port Specifies the static TCP/UDP port to allocate. number 9090 no
job_prometheus_version Prometheus version string n/a yes
job_region Specifies the region in which to execute the job. string "global" no
job_service_name Specifies the name this service will be advertised in Consul. string "prometheus" no
job_use_canary Uses canary deployment. bool true no
job_use_host_volume Use Nomad host volume feature. bool false no
job_vault_secret Set of properties to be able to fetch secret from vault.
object({
use_vault_provider = bool,
vault_kv_policy_name = string
vault_kv_path = string
})
{
"use_vault_provider": true,
"vault_kv_path": "pki/issue/consul",
"vault_kv_policy_name": "nomad-cluster"
}
no
job_volume_destination Specifies where the volume should be mounted inside the task string "/local/" no
job_volume_source The name of the volume to request string "volume-prometheus" no

Outputs

No outputs.