Add mysqld-prometheus-exporter to charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL InnoDB Cluster Charm |
Fix Committed
|
Undecided
|
JamesLin |
Bug Description
Transfer the metrics to prometheus and use a common library to integrate between nagios and prometheus. This may help the COS migration in the end of this year. If it works, it can be a good pattern for other modules.
If we go with standard Prometheus mysql exporter and then build the rules for nagios externally (ie in another charm perhaps), then the migration for MySQL is probably a bit more straightforward as the Prometheus relation already exists and the charm can add alert rules for alert manager and bootstack can build off the nagios stuff as a bridge
TODO:
- Snap install exporter https:/
- [ ] Need implement a snap containing the mysqld prometheus exporter from the prometheus community.
- [ ] Install snap in the charm.
- [ ] Create user for exporter in mysql
description: | updated |
description: | updated |
description: | updated |
Changed in charm-mysql-innodb-cluster: | |
status: | New → Fix Committed |
assignee: | nobody → JamesLin (jneo8) |
question: Should we install exporter by default?
Probably not, we should control snap installation by `charms.layer.snap` python package base on config `enable_ prometheus_ exporter` .
Or create user && install after relation join prometheus