-
Notifications
You must be signed in to change notification settings - Fork 7
/
charmcraft.yaml
97 lines (86 loc) · 3.05 KB
/
charmcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
type: charm
name: openstack-exporter
title: OpenStack Exporter
summary: Openstack exporter for Charmed OpenStack
description: |
This is an exporter that exposes information gathered from Openstack for use
by the Prometheus monitoring system. This operator works with the Canonical
Observability Stack (COS).
subordinate: false
bases:
- build-on:
- name: ubuntu
channel: "22.04"
run-on:
- name: ubuntu
channel: "22.04"
requires:
credentials:
interface: keystone-admin
provides:
cos-agent:
interface: cos_agent
limit: 1
# These bindings can be used to explicitly request interfaces in all the OpenStack
# network spaces. Needed when APIs are not exposed in the same network as the one bound
# to the credentials endpoint
extra-bindings:
admin:
public:
internal:
config:
options:
port:
type: int
default: 9180
description: |
The openstack-exporter service (metrics endpoint for prometheus scraping)
will listen at this port.
ssl_ca:
default: ""
type: string
description: |
Custom SSL CA for keystone if required.
The format should be the raw contents of a PEM encoded file.
(no base64 encoding).
cache_ttl:
default: "300s"
type: string
description: |
Cache expiry time-to-live (TTL), e.g., 10s, 11m, 12h. Cache refreshes at
intervals of cache_ttl/2.
Customizable based on the size of the OpenStack cluster.
Format details: https://pkg.go.dev/time#ParseDuration
cache:
default: true
type: boolean
description: |
By default, enables the exporter cache globally. Refreshes at intervals of cache_ttl/2.
If the cache is empty or expired, the response will be empty.
snap_channel:
default: "latest/stable"
type: string
description: |
The charmed-openstack-exporter snap is by default installed from the latest/stable channel.
This option allows the selection of a different channel.
If the snap file has been attached via the openstack-exporter resource, this option has no effect.
links:
documentation: https://discourse.charmhub.io/t/openstack-exporter-docs-index/13876
issues:
- https://github.com/canonical/openstack-exporter-operator/issues
source:
- https://github.com/canonical/openstack-exporter-operator
website:
- https://github.com/canonical/openstack-exporter-operator
resources:
openstack-exporter:
type: file
filename: openstack-exporter.snap
description: |
Snap for openstack-exporter.
This is the software that implements actual metrics collection and an endpoint for prometheus
scraping. The snap resource on Charmhub is intended to be an empty file. The charm will
ignore an empty file resource and normally install the snap from the snap store, but a
custom snap can also be provided here if needed.
This resource has priority: if this resource is present,
the snap will be installed from the resource, and the snap_channel option will have no effect.