-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Introduce failing observability example for podtatohead (#204)
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
- Loading branch information
Showing
8 changed files
with
70 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...es/observability/assets/podtatohead-evaluationdefinitions/keptnevaluationdefinition1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: lifecycle.keptn.sh/v1alpha1 | ||
kind: KeptnEvaluationDefinition | ||
metadata: | ||
name: my-prometheus-definition1 | ||
namespace: podtato-kubectl | ||
spec: | ||
source: prometheus | ||
objectives: | ||
- name: available-cpus ## this query should pass | ||
query: "sum(kube_pod_container_resource_limits{resource='cpu'}) - sum(kube_node_status_capacity{resource='cpu'})" | ||
evaluationTarget: "<1" | ||
|
12 changes: 12 additions & 0 deletions
12
...es/observability/assets/podtatohead-evaluationdefinitions/keptnevaluationdefinition2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: lifecycle.keptn.sh/v1alpha1 | ||
kind: KeptnEvaluationDefinition | ||
metadata: | ||
name: my-prometheus-definition2 | ||
namespace: podtato-kubectl | ||
spec: | ||
source: prometheus | ||
objectives: | ||
- name: consumed-memory ## this query should pass | ||
query: "sum(kube_node_status_capacity{resource='memory'})" | ||
evaluationTarget: "<1000000000000" | ||
|
10 changes: 5 additions & 5 deletions
10
...evaluation/keptnevaluationdefinition.yaml → ...finitions/keptnevaluationdefinition3.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
apiVersion: lifecycle.keptn.sh/v1alpha1 | ||
kind: KeptnEvaluationDefinition | ||
metadata: | ||
name: my-prometheus-definition | ||
name: my-prometheus-definition2 | ||
namespace: podtato-kubectl | ||
spec: | ||
source: prometheus | ||
objectives: | ||
- name: available-cpus | ||
- name: available-cpus ## this query should fail | ||
query: "sum(kube_pod_container_resource_limits{resource='cpu'}) - sum(kube_node_status_capacity{resource='cpu'})" | ||
evaluationTarget: ">1" #string: can only be starting with < or > | ||
- name: consumed-memory | ||
evaluationTarget: ">1" | ||
- name: consumed-memory ## this query should pass | ||
query: "sum(kube_node_status_capacity{resource='memory'})" | ||
evaluationTarget: "<1000000000000" #string: can only be starting with < or > | ||
evaluationTarget: "<1000000000000" | ||
|
12 changes: 12 additions & 0 deletions
12
...es/observability/assets/podtatohead-evaluationdefinitions/keptnevaluationdefinition4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: lifecycle.keptn.sh/v1alpha1 | ||
kind: KeptnEvaluationDefinition | ||
metadata: | ||
name: my-prometheus-definition1 | ||
namespace: podtato-kubectl | ||
spec: | ||
source: prometheus | ||
objectives: | ||
- name: available-cpus ## this query should fail | ||
query: "sum(kube_pod_container_resource_limits{resource='cpu'}) - sum(kube_node_status_capacity{resource='cpu'})" | ||
evaluationTarget: ">1000" | ||
|