-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharmcraft.yaml
70 lines (62 loc) · 2.03 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
# This file configures Charmcraft.
# See https://juju.is/docs/sdk/charmcraft-config for guidance.
name: prometheus-numa-exporter
type: charm
title: Prometheus-numa-exporter for OpenStack
summary: |
Deploys the [prometheus-numa-exporter](https://snapcraft.io/prometheus-numa-exporter) snap
and sets up prometheus relations
description: |
This charm manages the [prometheus-numa-exporter](https://snapcraft.io/prometheus-numa-exporter) snap.
It installs and configures the snap with reasonable defaults and checks the system it's installed on for the right
values for the configuration (i.e. cpu-list or networks). It also offers a relation with prometheus to set up
scraping.
bases:
- build-on:
- name: ubuntu
channel: "22.04"
run-on:
- name: ubuntu
channel: "22.04"
config:
options:
# An example config option to customise the log level of the workload
log-level:
description: |
Configures the log level of the charm.
Acceptable values are: "info", "debug", "warning", "error" and "critical"
default: "info"
type: string
channel:
description: |
Configures the snap channel.
Acceptable values are: "stable", "candidate", "beta", "edge"
default: "edge"
type: string
address:
description: Listening address for the exporter
default: "0.0.0.0"
type: string
scrape-interval:
description: |
This option configures how often exporter updates its data and how often should Prometheus
scrape them. (In minutes)
default: 15
type: int
scrape-timeout:
description: |
How long should Prometheus wait for response to scrape request before timing out (In seconds)
default: 30
type: int
scrape-port:
description: Listening port for the exporter
default: 9117
type: int
subordinate: true
requires:
juju-info:
interface: juju-info
scope: container
provides:
prometheus-scrape: # Relation with legacy "prometheus2" charm
interface: prometheus