Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Kubernetes Monitoring Helm Chart
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Monitoring
helm-charts
Kubernetes Monitoring Helm Chart
Commits
416ae821
Commit
416ae821
authored
1 week ago
by
Nacho Barrientos
Browse files
Options
Downloads
Patches
Plain Diff
Cover with a test that extraLabelsForMetrics are honoured
parent
e24f1fde
No related branches found
Branches containing commit
No related tags found
1 merge request
!55
Make sure that k8s_cluster_name is set when it has to
Pipeline
#11010880
passed
1 week ago
Stage: lint
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/prometheus/prometheus.yaml
+12
-0
12 additions, 0 deletions
tests/prometheus/prometheus.yaml
with
12 additions
and
0 deletions
tests/prometheus/prometheus.yaml
+
12
−
0
View file @
416ae821
...
...
@@ -38,6 +38,18 @@ tests:
-
equal
:
path
:
spec.externalLabels.k8s_cluster_name
value
:
test
-
it
:
extra labels for metrics are honoured
set
:
kubernetes.clusterName
:
test
metrics.prometheus.server.extraLabelsForMetrics
:
test
:
bar
asserts
:
-
equal
:
path
:
spec.externalLabels.k8s_cluster_name
value
:
test
-
equal
:
path
:
spec.externalLabels.test
value
:
bar
-
it
:
should be deployed with no remoteWrites if no fluentbit is available
set
:
kubernetes.clusterName
:
test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment