-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shared metrics between requests (#722)
## Breaking changes ### dropped metrics * mysql_exporter_scrapes_total * mysql_exporter_scrape_errors_total * mysql_last_scrape_failed ### new metrics * mysql_exporter_collector_success (replace mysql_exporter_scrape_errors_total) ### metrics isolated between requests * mysql_up * mysql_exporter_collector_success * mysql_exporter_collector_duration_seconds ## Why is this neccessary We are using mysqld_exporter in `multi-target` method, which means one exporter for multiple mysql instance, the crucial metric `mysql_up` must be isolated between requests, or there will be misunderstandings, some mysql instance would shown as down while in fact it is not. all shared metrics are dropped especially `mysql_exporter_scrapes_total` and `mysql_exporter_scrape_errors_total` , the metrics are useless since prometheus can record almost everything, including scrape fail for each collector. `mysql_last_scrape_failed` is covered by `mysql_exporter_collector_success` so it is also dropped. fixes #713 --------- Signed-off-by: qizhicheng <qizhicheng@douban.com>
- Loading branch information
Showing
4 changed files
with
32 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters