Skip to content

Commit

Permalink
add refs to k8s api
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
  • Loading branch information
ChrsMark committed Dec 3, 2024
1 parent 90ccb96 commit eee691b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/system/k8s-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `k8s.deployment.desired` | Gauge | `{pod}` | Number of desired pods in this deployment | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `k8s.deployment.desired` | Gauge | `{pod}` | Number of desired pods in this deployment [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |

**[1]:** This metric aligns with the `replicas` field of the
[K8s Deployment Spec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentspec-v1-apps)

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
Expand All @@ -401,7 +404,10 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `k8s.deployment.available` | Gauge | `{pod}` | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `k8s.deployment.available` | Gauge | `{pod}` | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |

**[1]:** This metric aligns with the `readyReplicas` field of the
[K8s Deployment Status](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentstatus-v1-apps)

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
Expand All @@ -425,7 +431,10 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `k8s.replicaset.desired` | Gauge | `{pod}` | Number of desired pods in this replicaset | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `k8s.replicaset.desired` | Gauge | `{pod}` | Number of desired pods in this replicaset [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |

**[1]:** This metric aligns with the `replicas` field of the
[K8s ReplicaSet Spec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetspec-v1-apps)

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
Expand All @@ -445,7 +454,10 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `k8s.replicaset.available` | Gauge | `{pod}` | Total number of available pods (ready for at least minReadySeconds) targeted by this replicaset | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `k8s.replicaset.available` | Gauge | `{pod}` | Total number of available pods (ready for at least minReadySeconds) targeted by this replicaset [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |

**[1]:** This metric aligns with the `readyReplicas` field of the
[K8s ReplicaSet Status](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetstatus-v1-apps)

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
Expand Down
12 changes: 12 additions & 0 deletions model/k8s/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,19 @@ groups:
metric_name: k8s.deployment.desired
stability: experimental
brief: "Number of desired pods in this deployment"
note: |
This metric aligns with the `replicas` field of the
[K8s Deployment Spec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentspec-v1-apps)
instrument: gauge
unit: "{pod}"
- id: metric.k8s.deployment.available
type: metric
metric_name: k8s.deployment.available
stability: experimental
brief: "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment"
note: |
This metric aligns with the `readyReplicas` field of the
[K8s Deployment Status](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#deploymentstatus-v1-apps)
instrument: gauge
unit: "{pod}"

Expand All @@ -149,12 +155,18 @@ groups:
metric_name: k8s.replicaset.desired
stability: experimental
brief: "Number of desired pods in this replicaset"
note: |
This metric aligns with the `replicas` field of the
[K8s ReplicaSet Spec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetspec-v1-apps)
instrument: gauge
unit: "{pod}"
- id: metric.k8s.replicaset.available
type: metric
metric_name: k8s.replicaset.available
stability: experimental
brief: "Total number of available pods (ready for at least minReadySeconds) targeted by this replicaset"
note: |
This metric aligns with the `readyReplicas` field of the
[K8s ReplicaSet Status](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#replicasetstatus-v1-apps)
instrument: gauge
unit: "{pod}"

0 comments on commit eee691b

Please sign in to comment.