Skip to content

[POWERMON] POWERMON-629 API Spec TP 0.5 #96329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: power-monitoring-0.5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _topic_maps/_topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3300,6 +3300,8 @@ Topics:
File: visualizing-power-monitoring-metrics
- Name: Uninstalling power monitoring
File: uninstalling-power-monitoring
- Name: Power monitoring API reference
File: power-monitoring-api-reference
---
Name: Scalability and performance
Dir: scalability_and_performance
Expand Down
137 changes: 137 additions & 0 deletions modules/power-monitoring-api-specifications.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// Automatically generated by 'kepler.system.sustainable.computing.io'. Do not edit.
:_mod-docs-content-type: REFERENCE
[id="power-monitoring-api-specifications_{context}"]
= PowerMonitoring API specifications

PowerMonitor


PowerMonitor is the schema for the PowerMonitor API.

[cols="1,1,4,1", options="header"]
|===
| Name
| Type
| Description
| Required

| *apiVersion*
| string
| kepler.system.sustainable.computing.io/v1alpha1
| true

| *kind*
| string
| PowerMonitor
| true

| link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[*metadata*]
| object
| Refer to the Kubernetes API documentation for the fields of the metadata field.
| true

| *spec*
| object
| PowerMonitorSpec defines the desired state of the Power Monitor.
| false

| *status*
| object
| PowerMonitorStatus defines the observed state of the Power Monitor.
| false
|===

PowerMonitor.status.conditions

[cols="1,1,4,1", options="header"]
|===
| Name
| Type
| Description
| Required

| *lastTransitionTime*
| string
| The last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. +
Format: date-time
| true

| *message*
| string
| A human-readable message indicating details about the transition. This may be an empty string.
| true

| *reason*
| string
| Contains a programmatic identifier indicating the reason for the condition's last transition.
| true

| *status*
| string
| The status of the condition, which can be one of True, False, or Unknown.
| true

| *type*
| string
| The type of Kepler Condition, such as Reconciled or Available.
| true

| *observedGeneration*
| integer
| Represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date. +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [error] RedHat.TermsErrors: Use 'for example' rather than 'For instance'. For more information, see RedHat.TermsErrors.

Format: int64 +
Minimum: 0
| false
|===

PowerMonitor.status.kepler

[cols="1,1,4,1", options="header"]
|===
| Name
| Type
| Description
| Required

| *currentNumberScheduled*
| integer
| The number of nodes that are running at least one power-monitor pod and are supposed to run it. +
Format: int32
| true

| *desiredNumberScheduled*
| integer
| The total number of nodes that should be running the power-monitor pod. +
Format: int32
| true

| *numberMisscheduled*
| integer
| The number of nodes running the power-monitor pod that are not supposed to. +
Format: int32
| true

| *numberReady*
| integer
| The number of nodes that should be running the power-monitor pod and have at least one pod with a Ready condition. +
Format: int32
| true

| *numberAvailable*
| integer
| The number of nodes that should be running the power-monitor pod and have at least one pod running and available. +
Format: int32
| false

| *numberUnavailable*
| integer
| The number of nodes that should be running the power-monitor pod but have no pods running and available. +
Format: int32
| false

| *updatedNumberScheduled*
| integer
| The total number of nodes that are running an updated power-monitor pod. +
Format: int32
| false
|===
14 changes: 14 additions & 0 deletions observability/power_monitoring/power-monitoring-api-reference.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:_mod-docs-content-type: ASSEMBLY
[id="power-monitoring-api-reference_{context}"]
= Power monitoring API reference
include::_attributes/common-attributes.adoc[]
:context: power-monitoring-kepler-power-attribution-guide

toc::[]

:FeatureName: Power monitoring
include::snippets/technology-preview.adoc[leveloffset=+2]

PowerMonitor is the Schema for the PowerMonitor API.

include::modules/power-monitoring-api-specifications.adoc[leveloffset=+1]