Skip to content

Commit

Permalink
Test for the prometheus exporter as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jforest committed Nov 18, 2024
1 parent 3a92eec commit 98b236a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ci/rstudio-workbench/tests/prometheus_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,22 @@ tests:
prometheus.io/port: "9108"
- exists:
path: "spec.template.metadata.annotations.checksum/config-graphite"
- it: should ensure the legacy metrics port is used and that the graphite exporter container exists
template: deployment.yaml
set:
prometheus:
enabled: true
legacy: true
port: 8989
prometheusExporter:
enabled: true
asserts:
- equal:
path: "spec.template.spec.containers[1].name"
value: "exporter"
- equal:
path: "spec.template.spec.containers[1].ports[0].name"
value: "metrics"
- equal:
path: "spec.template.spec.containers[1].ports[0].containerPort"
value: 9108

0 comments on commit 98b236a

Please sign in to comment.