mysql-servicemonitor
by ygqygq2
A Helm chart servicemonitor for mysql exporter
About this chart
mysql-exporter-servicemonitor - Prometheus Operator with mysql exporter servicemonitor
mysql-exporter-servicemonitor是Prometheus Operator监控mysql exporter的charts
Introduction
This chart bootstraps prometheus servicemonitor on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.6+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release ./mysql-exporter-servicemonitor
The command deploys ceph-exporter cluster on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstall
To uninstall/delete the my-release deployment:
$ helm uninstall my-release
Configuration
The following table lists the configurable parameters of the chart and their default values.
| Parameter | Description | Default |
|---|---|---|
namespaceSelector | service monitor deploy namespace | monitoring |
endpoints | node exporter addresses | [] |
metricsPortName | metrics port name | metrics |
metricsPort | exporter metrics port | 9104 |
scheme | metrics web scheme | http |
prometheusRule | prometheusRule | see in values.yaml |
additionalServiceMonitorLabels | one of prometheus operator label | release: prometheus-operator |
additionalRulesLabels | one of prometheus operator label | release: prometheus-operator |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Deploy mysql-servicemonitor with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mysql-servicemonitor on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmysql-servicemonitor is pinned at v1.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply