213a659f8d
Also remove the scrape_timeout override. This is discouraged by the prometheus_scrape lib, and should no longer be necessary if the exporter has a cache. We also need to use a newer build of the oci-image that has the cache feature. Change-Id: Ibac014171a084798ec1731553bbd896497d232a0
82 lines
1.6 KiB
YAML
82 lines
1.6 KiB
YAML
type: charm
|
|
name: openstack-exporter-k8s
|
|
summary: OpenStack openstack-exporter service
|
|
description: |
|
|
OpenStack openstack-exporter provides endpoint metrics for OpenStack services.
|
|
assumes:
|
|
- k8s-api
|
|
- juju >= 3.1
|
|
links:
|
|
source:
|
|
- https://opendev.org/openstack/charm-openstack-exporter-k8s
|
|
issues:
|
|
- https://bugs.launchpad.net/charm-openstack-exporter-k8s
|
|
|
|
base: ubuntu@24.04
|
|
platforms:
|
|
amd64:
|
|
|
|
config:
|
|
options:
|
|
region:
|
|
default: RegionOne
|
|
description: Name of the OpenStack region
|
|
type: string
|
|
|
|
containers:
|
|
openstack-exporter:
|
|
resource: openstack-exporter-image
|
|
|
|
resources:
|
|
openstack-exporter-image:
|
|
type: oci-image
|
|
description: OCI image for OpenStack openstack-exporter
|
|
upstream-source: ghcr.io/canonical/openstack-exporter:1.7.0-3be9ddb
|
|
|
|
requires:
|
|
identity-ops:
|
|
interface: keystone-resources
|
|
receive-ca-cert:
|
|
interface: certificate_transfer
|
|
optional: true
|
|
logging:
|
|
interface: loki_push_api
|
|
optional: true
|
|
tracing:
|
|
interface: tracing
|
|
optional: true
|
|
limit: 1
|
|
|
|
provides:
|
|
metrics-endpoint:
|
|
interface: prometheus_scrape
|
|
grafana-dashboard:
|
|
interface: grafana_dashboard
|
|
|
|
peers:
|
|
peers:
|
|
interface: openstack-exporter-peer
|
|
|
|
parts:
|
|
update-certificates:
|
|
plugin: nil
|
|
override-build: |
|
|
apt update
|
|
apt install -y ca-certificates
|
|
update-ca-certificates
|
|
charm:
|
|
after:
|
|
- update-certificates
|
|
build-packages:
|
|
- git
|
|
- libffi-dev
|
|
- libssl-dev
|
|
- rustc
|
|
- cargo
|
|
- pkg-config
|
|
charm-binary-python-packages:
|
|
- cryptography
|
|
- jsonschema
|
|
- pydantic
|
|
- jinja2
|