Skip to content

Commit

Permalink
adjust metrics integration test to use a real promtheus metrics provi…
Browse files Browse the repository at this point in the history
…der and a real query

Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Apr 17, 2023
1 parent b6da204 commit 5d91dae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions test/integration/metrics/00-install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: my-provider
spec:
type: prometheus
targetServer: "http://prometheus-k8s.monitoring.svc.cluster.local:9090"
4 changes: 2 additions & 2 deletions test/integration/metrics/goodmetric.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ metadata:
name: podtato-head
spec:
provider:
name: "provider"
query: "query"
name: "my-provider"
query: "sum(kube_pod_container_resource_limits{resource='cpu'})"
fetchIntervalSeconds: 5

0 comments on commit 5d91dae

Please sign in to comment.