Skip to content

Commit

Permalink
docs: change apiVersion for keptnMetric and keptnMetrics provider
Browse files Browse the repository at this point in the history
Signed-off-by: vickysomtee <[email protected]>
  • Loading branch information
Vickysomtee committed Jan 2, 2024
1 parent c5b7579 commit af96851
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions docs-new/docs/getting-started/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The
file for our example looks like:

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: available-cpus
Expand All @@ -114,7 +114,7 @@ spec:
query: "sum(kube_node_status_capacity{resources`cpu`})"
fetchIntervalSeconds: 10
---
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: availability-slo
Expand Down Expand Up @@ -201,7 +201,7 @@ $ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta2/namespaces/simplenode-d
"kind": "KeptnMetric",
"namespace": "simplenode-dev",
"name": "available-cpus",
"apiVersion": "metrics.keptn.sh/v1beta1"
"apiVersion": "metrics.keptn.sh/v1alpha3"
},
"metric": {
"name": "available-cpus",
Expand Down
10 changes: 5 additions & 5 deletions docs-new/docs/guides/evaluatemetrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The
file for our example looks like:

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: available-cpus
Expand All @@ -85,7 +85,7 @@ spec:
query: "sum(kube_node_status_capacity{resources`cpu`})"
fetchIntervalSeconds: 10
---
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: availability-slo
Expand Down Expand Up @@ -140,7 +140,7 @@ $ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta2/namespaces/podtato-kube
"kind": "KeptnMetric",
"namespace": "podtato-kubectl",
"name": "keptnmetric-sample",
"apiVersion": "metrics.keptn.sh/v1beta1"
"apiVersion": "metrics.keptn.sh/v1alpha3"
},
"metric": {
"name": "keptnmetric-sample",
Expand Down Expand Up @@ -177,7 +177,7 @@ $ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta2/namespaces/podtato-kube
"kind": "KeptnMetric",
"namespace": "keptn-system",
"name": "keptnmetric-sample",
"apiVersion": "metrics.keptn.sh/v1beta1"
"apiVersion": "metrics.keptn.sh/v1alpha3"
},
"metric": {
"name": "keptnmetric-sample",
Expand Down Expand Up @@ -207,7 +207,7 @@ In other words, the span is
The default value is set to be `5m` if the `range.interval` is not set.

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: good-metric
Expand Down
4 changes: 2 additions & 2 deletions docs-new/docs/reference/crd-reference/metric.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for different metrics at the same time.
## Yaml Synopsis

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: <metric-name>
Expand Down Expand Up @@ -108,7 +108,7 @@ defined as `my-provider` in the `spec.provider.name` field
of the corresponding `KeptnMetricsProvider` CR.

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: keptnmetric-sample
Expand Down
2 changes: 1 addition & 1 deletion docs-new/docs/reference/crd-reference/metricsprovider.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ for each metric definition by its name.
## Yaml Synopsis

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: <data-source-instance-name>
Expand Down
6 changes: 3 additions & 3 deletions docs/content/en/docs/getting-started/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The
file for our example looks like:

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: available-cpus
Expand All @@ -154,7 +154,7 @@ spec:
query: "sum(kube_node_status_capacity{resources`cpu`})"
fetchIntervalSeconds: 10
---
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: availability-slo
Expand Down Expand Up @@ -241,7 +241,7 @@ $ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta2/namespaces/simplenode-d
"kind": "KeptnMetric",
"namespace": "simplenode-dev",
"name": "available-cpus",
"apiVersion": "metrics.keptn.sh/v1beta1"
"apiVersion": "metrics.keptn.sh/v1alpha3"
},
"metric": {
"name": "available-cpus",
Expand Down
14 changes: 7 additions & 7 deletions docs/content/en/docs/guides/evaluatemetrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ for a Prometheus data source that does not use a secret
could look like:

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: prometheus-provider
Expand All @@ -87,7 +87,7 @@ The `KeptnMetricProvider` resource for a Dynatrace provider
that uses a secret could look like:

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: dynatrace-provider
Expand Down Expand Up @@ -122,7 +122,7 @@ The
file for our example looks like:

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: available-cpus
Expand All @@ -133,7 +133,7 @@ spec:
query: "sum(kube_node_status_capacity{resources`cpu`})"
fetchIntervalSeconds: 10
---
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: availability-slo
Expand Down Expand Up @@ -188,7 +188,7 @@ $ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta2/namespaces/podtato-kube
"kind": "KeptnMetric",
"namespace": "podtato-kubectl",
"name": "keptnmetric-sample",
"apiVersion": "metrics.keptn.sh/v1beta1"
"apiVersion": "metrics.keptn.sh/v1alpha3"
},
"metric": {
"name": "keptnmetric-sample",
Expand Down Expand Up @@ -225,7 +225,7 @@ $ kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta2/namespaces/podtato-kube
"kind": "KeptnMetric",
"namespace": "keptn-system",
"name": "keptnmetric-sample",
"apiVersion": "metrics.keptn.sh/v1beta1"
"apiVersion": "metrics.keptn.sh/v1alpha3"
},
"metric": {
"name": "keptnmetric-sample",
Expand Down Expand Up @@ -255,7 +255,7 @@ In other words, the span is
The default value is set to be `5m` if the `range.interval` is not set.

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetric
metadata:
name: good-metric
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for each metric definition by its name.
## Yaml Synopsis

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: <data-source-instance-name>
Expand Down Expand Up @@ -91,7 +91,7 @@ on all namespaces in the cluster.
### Example 1: Dynatrace data provider

```yaml
apiVersion: metrics.keptn.sh/v1beta1
apiVersion: metrics.keptn.sh/v1alpha3
kind: KeptnMetricsProvider
metadata:
name: dynatrace
Expand Down

0 comments on commit af96851

Please sign in to comment.