From c0170da023601239b00f9716d187a2b37e2ccc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Wed, 24 Jan 2024 10:43:34 +0100 Subject: [PATCH] fix --- monitor/prometheus/index.yaml | 96 ++++++++++++++++---------------- monitor/prometheus/prometheus.tf | 2 + 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/monitor/prometheus/index.yaml b/monitor/prometheus/index.yaml index 4a6098a..64c6d72 100644 --- a/monitor/prometheus/index.yaml +++ b/monitor/prometheus/index.yaml @@ -6,46 +6,31 @@ metadata: name: prometheus description: null options: - ingress-class: - default: traefik + domain: + default: your-company examples: - - traefik + - your-company + type: string + replicas: + default: 1 + examples: + - 1 + type: integer + shards: + default: 1 + examples: + - 1 + type: integer + domain-name: + default: your_company.com + examples: + - your_company.com type: string app-group: default: monitor examples: - monitor type: string - logLevel: - default: info - examples: - - info - type: string - listenLocal: - default: false - examples: - - false - type: boolean - retention: - default: 10d - examples: - - 10d - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - enableAdminAPI: - default: false - examples: - - false - type: boolean - sub-domain: - default: prometheus - examples: - - prometheus - type: string images: default: prometheus: @@ -85,26 +70,41 @@ options: type: string type: object type: object - shards: - default: 1 + issuer: + default: letsencrypt-prod examples: - - 1 - type: integer - domain-name: - default: your_company.com - examples: - - your_company.com + - letsencrypt-prod type: string - domain: - default: your-company + logLevel: + default: info examples: - - your-company + - info type: string - replicas: - default: 1 + listenLocal: + default: false examples: - - 1 - type: integer + - false + type: boolean + ingress-class: + default: traefik + examples: + - traefik + type: string + retention: + default: 10d + examples: + - 10d + type: string + enableAdminAPI: + default: false + examples: + - false + type: boolean + sub-domain: + default: prometheus + examples: + - prometheus + type: string dependencies: - dist: null category: share diff --git a/monitor/prometheus/prometheus.tf b/monitor/prometheus/prometheus.tf index 51156ae..10d01df 100644 --- a/monitor/prometheus/prometheus.tf +++ b/monitor/prometheus/prometheus.tf @@ -4,6 +4,8 @@ resource "kubectl_manifest" "prometheus" { kind: Prometheus metadata: name: prometheus + namespace: "${var.namespace}" + labels: ${jsonencode(local.common-labels)} spec: image: "${var.images.prometheus.registry}/${var.images.prometheus.repository}:${var.images.prometheus.tag}" version: ${var.images.prometheus.tag}