Skip to content

Commit 27195b8

Browse files
committed
chore(scaletest): add deployment name to all metrics
1 parent 2e5b65b commit 27195b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scaletest/terraform/action/prometheus.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ resource "helm_release" "prometheus_chart_primary" {
1717
name = local.prometheus_release_name
1818
namespace = kubernetes_namespace.coder_primary.metadata.0.name
1919
values = [templatefile("${path.module}/prometheus_helm_values.tftpl", {
20+
deployment_name = var.name,
2021
nodepool = google_container_node_pool.node_pool["primary_misc"].name,
2122
cluster = "primary",
2223
prometheus_remote_write_url = var.prometheus_remote_write_url,
@@ -104,6 +105,7 @@ resource "helm_release" "prometheus_chart_europe" {
104105
name = local.prometheus_release_name
105106
namespace = kubernetes_namespace.coder_europe.metadata.0.name
106107
values = [templatefile("${path.module}/prometheus_helm_values.tftpl", {
108+
deployment_name = var.name,
107109
nodepool = google_container_node_pool.node_pool["europe_misc"].name,
108110
cluster = "europe",
109111
prometheus_remote_write_url = var.prometheus_remote_write_url,
@@ -141,6 +143,7 @@ resource "helm_release" "prometheus_chart_asia" {
141143
name = local.prometheus_release_name
142144
namespace = kubernetes_namespace.coder_asia.metadata.0.name
143145
values = [templatefile("${path.module}/prometheus_helm_values.tftpl", {
146+
deployment_name = var.name,
144147
nodepool = google_container_node_pool.node_pool["asia_misc"].name,
145148
cluster = "asia",
146149
prometheus_remote_write_url = var.prometheus_remote_write_url,

scaletest/terraform/action/prometheus_helm_values.tftpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ prometheus:
2222
values: ["${nodepool}"]
2323
prometheusSpec:
2424
externalLabels:
25+
deployment_name: "${deployment_name}"
2526
cluster: "${cluster}"
2627
podMonitorSelectorNilUsesHelmValues: false
2728
serviceMonitorSelectorNilUsesHelmValues: false

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy