
Install mysqld-exporter with snap. It's a prometheus exporter for mysql, which provide the http interface for prometheus to pull the metrics. It should only install & setup configuration when relation connect to prometheus, and disable when relation remove. The charm also need to create read only user for the exporter to get the metrics. https://github.com/prometheus/mysqld_exporter Change-Id: Id6a6337004586699c7f943530fa7a32deae26db0 func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/859
28 lines
594 B
YAML
28 lines
594 B
YAML
includes:
|
|
- layer:coordinator
|
|
- layer:leadership
|
|
- layer:snap
|
|
- layer:openstack
|
|
- interface:mysql-shared
|
|
- interface:mysql-router
|
|
- interface:mysql-innodb-cluster
|
|
- interface:mysql-monitor
|
|
- interface:http
|
|
options:
|
|
basic:
|
|
use_venv: True
|
|
packages: ['libmysqlclient-dev']
|
|
snap:
|
|
mysql-shell:
|
|
channel: stable
|
|
coordinator:
|
|
class: charm.openstack.delayed_action_coordinator.DelayedActionCoordinator
|
|
|
|
repo: https://opendev.org/openstack/charm-mysql-innodb-cluster
|
|
config:
|
|
deletes:
|
|
- verbose
|
|
- use-internal-endpoints
|
|
- debug
|
|
- use-syslog
|