Skip to main content

clusternest_prometheus (Resource)

Example Usage

resource "clusternest_prometheus" "test" {
name = "metrics"
tier = "standard"
organization_id = 123
}

data "clusternest_prometheus_credentials" "test" {
cluster_id = clusternest_prometheus.test.id
}

output "prometheus_url" {
value = clusternest_prometheus.test.prometheus_url
}

output "admin_password" {
value = data.clusternest_prometheus_credentials.test.admin
}

output "readonly_password" {
value = data.clusternest_prometheus_credentials.test.readonly
sensitive = true
}

Schema

Required

  • name (String) Cluster name, unique within the organization. Lowercase letters, digits, and hyphens only.
  • organization_id (Number) Organization the cluster is created in.

Optional

  • maintenance_window (Attributes) (see below for nested schema)
  • prometheus_custom_hostname (String)
  • prometheus_whitelist (List of String)
  • retention_period (String) The following optional suffixes are supported: h (hour), d (day), w (week), y (year). If suffix isn't set, then the duration is counted in months
  • storage_node_count (Number) Number of storage nodes in the cluster. Only Advanced tier supports more than 2 storage nodes upto a maximum of 10.
  • tier (String) Sizing/pricing tier the cluster runs at.
  • version (String) VictoriaMetrics version. The last 10 minor releases.

Read-Only

  • id (Number) Unique identifier of the cluster.
  • prometheus_url (String)

Nested Schema for maintenance_window

Required:

  • day_of_week (String) Day of the week the window recurs on, UTC.
  • end_time (String) Before start_time means the window wraps past midnight into the next day (e.g. start_time='23:00', end_time='01:00' is a 2-hour window). Equal to start_time means the full 24 hours are available on day_of_week - distinct from leaving maintenance_window unset entirely, which means every day, any time.
  • start_time (String) Start of the window, 24h "HH:MM", UTC.