Ceilometer K8S
- OpenStack Charmers
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/edge | 1 | 10 Aug 2023 | |
2024.1/beta | 62 | 11 Dec 2024 | |
2024.1/beta | 57 | 22 Nov 2024 | |
2024.1/edge | 62 | 09 Dec 2024 | |
2024.1/edge | 57 | 08 Oct 2024 | |
2023.2/stable | 14 | 06 Dec 2023 | |
2023.2/candidate | 25 | 25 Mar 2024 | |
2023.2/beta | 25 | 25 Mar 2024 | |
2023.2/edge | 25 | 23 Feb 2024 | |
2023.1/candidate | 16 | 12 Jan 2024 | |
2023.1/beta | 16 | 10 Jan 2024 | |
2023.1/edge | 16 | 12 Dec 2023 |
juju deploy ceilometer-k8s --channel edge
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
charms.ceilometer_k8s.v0.ceilometer_service
-
- Last updated 06 Sep 2023
- Revision Library version 0.1
CeilometerServiceProvides and Requires module.
This library contains the Requires and Provides classes for handling the ceilometer_service interface.
Import CeilometerServiceRequires
in your charm, with the charm object and the
relation name:
- self
- "ceilometer_service"
Two events are also available to respond to: - config_changed - goneaway
A basic example showing the usage of this relation follows:
from charms.ceilometer_k8s.v0.ceilometer_service import (
CeilometerServiceRequires
)
class CeilometerServiceClientCharm(CharmBase):
def __init__(self, *args):
super().__init__(*args)
# CeilometerService Requires
self.ceilometer_service = CeilometerServiceRequires(
self, "ceilometer_service",
)
self.framework.observe(
self.ceilometer_service.on.config_changed,
self._on_ceilometer_service_config_changed
)
self.framework.observe(
self.ceilometer_service.on.goneaway,
self._on_ceiometer_service_goneaway
)
def _on_ceilometer_service_config_changed(self, event):
'''React to the Ceilometer service config changed event.
This event happens when CeilometerService relation is added to the
model and relation data is changed.
'''
# Do something with the configuration provided by relation.
pass
def _on_ceilometer_service_goneaway(self, event):
'''React to the CeilometerService goneaway event.
This event happens when CeilometerService relation is removed.
'''
# CeilometerService Relation has goneaway.
pass
Index
class CeilometerConfigRequestEvent
Description
CeilometerConfigRequest Event. None
class CeilometerServiceProviderEvents
Description
Events class for on
. None
class CeilometerServiceProvides
Description
CeilometerServiceProvides class. None
Methods
CeilometerServiceProvides. __init__( self , charm: CharmBase , relation_name: str )
CeilometerServiceProvides. set_config( self , relation , telemetry_secret: str )
Description
Set ceilometer configuration on the relation. None
class CeilometerConfigChangedEvent
Description
CeilometerConfigChanged Event. None
class CeilometerServiceGoneAwayEvent
Description
CeilometerServiceGoneAway Event. None
class CeilometerServiceRequirerEvents
Description
Events class for on
. None
class CeilometerServiceRequires
Description
CeilometerServiceRequires class. None
Methods
CeilometerServiceRequires. __init__( self , charm: CharmBase , relation_name: str )
CeilometerServiceRequires. get_remote_app_data( self , key: str )
Description
Return the value for the given key from remote app data. None
CeilometerServiceRequires. telemetry_secret( self )
Description
Return the telemetry_secret. None