mysqld-exporter no service
sona-yuan opened this issue · comments
What
Describe what this issue should address.
How
Describe how to address the issue.
Checklist
- Finish implementation of the issue
- Test all functions
- Have enough logs to trace activities
- Notify developers of necessary actions
The exporter sidecar should be accessed directly not via a Service because
each exporter exports metrics of the mysqld
process of the same Pod.
Since there is a headless Service, you can access each exporter by something like:
moco-test-0.moco-test.svc:9104
moco-test-1.moco-test.svc:9104
- ...
NB 9104 is the port number of mysqld-exporter
.
There is also an example scraping rule for Prometheus that collects
metrics from mysqld-exporter
for all Pods.
https://github.com/cybozu-go/moco/blob/main/docs/metrics.md#scrape-rules