Infra: Monitoring capability
[csit.git] / terraform-ci-infra / 1n_nmd / grafana / variables.tf
1 # Nomad
2 variable "nomad_datacenters" {
3   description = "Nomad data centers"
4   type        = list(string)
5   default     = [ "dc1" ]
6 }
7
8 # Grafana
9 variable "grafana_job_name" {
10   description = "Grafana job name"
11   type        = string
12   default     = "grafana"
13 }
14
15 variable "grafana_group_count" {
16   description = "Number of grafana group instances"
17   type        = number
18   default     = 1
19 }
20
21 variable "grafana_service_name" {
22   description = "Grafana service name"
23   type        = string
24   default     = "grafana"
25 }
26
27 variable "grafana_container_image" {
28   description = "Grafana docker image"
29   type        = string
30   default     = "grafana/grafana:7.3.7"
31 }
32
33 variable "grafana_use_canary" {
34   description = "Uses canary deployment"
35   type        = bool
36   default     = false
37 }
38
39 variable "grafana_vault_secret" {
40   description = "Set of properties to be able to fetch secret from vault"
41   type        = object({
42     use_vault_provider        = bool,
43     vault_kv_policy_name      = string,
44     vault_kv_path             = string,
45     vault_kv_field_access_key = string,
46     vault_kv_field_secret_key = string
47   })
48 }
49
50 variable "grafana_cpu" {
51   description = "Grafana CPU allocation"
52   type        = number
53   default     = 2000
54 }
55
56 variable "grafana_mem" {
57   description = "Grafana RAM allocation"
58   type        = number
59   default     = 8192
60 }
61
62 variable "grafana_port" {
63   description = "Grafana TCP allocation"
64   type        = number
65   default     = 3000
66 }