Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67bbac0

Browse files
committed
chore(scaletest): add deployment name to all metrics
1 parentb066a0b commit67bbac0

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)

[8]ページ先頭

©2009-2025 Movatter.jp