Chapter 10. Common Exporters
You already saw the Node Exporter in Chapter 7, but there are literally hundreds of other exporters you can use.
We are not going to go through all of the ever-growing number of exporters out there; instead, we will show you some examples of the types of things you will come across when using exporters. This will prepare you to use exporters in your own environment.
At the simplest, exporters work out of the box, with no configuration required on your part, as you already saw for the Node Exporter. Usually you will need to do minimal configuration to tell the exporter which application instance to scrape. At the far end, some exporters require extensive configuration as the data they are working with is very general.
You will generally have one exporter for every application instance that needs one. This is because the intended way to use Prometheus is for every application to have direct instrumentation and have Prometheus discover it and scrape it directly. When that isn’t possible, exporters are used, and you want to keep to that architecture as much as possible. Having the exporter live right beside the application instance it is exporting from is easier to manage as you grow, and keeps your failure domains aligned. You will find that some exporters violate this guideline and offer the ability to scrape multiple instances, but you can still deploy them in the intended fashion and use the techniques shown in “metric_relabel_configs” to remove any ...
Get Prometheus: Up & Running, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.