a509533ccd95ff0b491555985dd3b53ff499e2b3
[csit.git] / fdio.infra.terraform / 1n_nmd / prometheus / variables.tf
1 # Nomad
2 variable "nomad_datacenters" {
3   description = "Nomad data centers"
4   type        = list(string)
5   default     = [ "dc1" ]
6 }
7
8 variable "nomad_host_volume" {
9   description = "Nomad Host Volume"
10   type        = string
11   default     = "persistence"
12 }
13
14 # Prometheus
15 variable "prometheus_job_name" {
16   description = "Prometheus job name"
17   type        = string
18   default     = "prometheus"
19 }
20
21 variable "prometheus_group_count" {
22   description = "Number of prometheus group instances"
23   type        = number
24   default     = 1
25 }
26
27 variable "prometheus_service_name" {
28   description = "Prometheus service name"
29   type        = string
30   default     = "prometheus"
31 }
32
33 variable "prometheus_version" {
34   description = "Prometheus version"
35   type        = string
36   default     = "v2.24.0"
37 }
38
39 variable "prometheus_use_canary" {
40   description = "Uses canary deployment"
41   type        = bool
42   default     = false
43 }
44
45 variable "prometheus_vault_secret" {
46   description = "Set of properties to be able to fetch secret from vault"
47   type        = object({
48     use_vault_provider        = bool,
49     vault_kv_policy_name      = string,
50     vault_kv_path             = string,
51     vault_kv_field_access_key = string,
52     vault_kv_field_secret_key = string
53   })
54 }
55
56 variable "prometheus_cpu" {
57   description = "Prometheus CPU allocation"
58   type        = number
59   default     = 2000
60 }
61
62 variable "prometheus_mem" {
63   description = "Prometheus RAM allocation"
64   type        = number
65   default     = 8192
66 }
67
68 variable "prometheus_port" {
69   description = "Prometheus TCP allocation"
70   type        = number
71   default     = 9200
72 }
73
74 variable "prometheus_data_dir" {
75   description = "Prometheus DISK allocation"
76   type        = string
77   default     = "/data"
78 }
79
80 variable "prometheus_use_host_volume" {
81   description = "Use Nomad host volume feature"
82   type        = bool
83   default     = false
84 }