appendix-b
appendix B Prometheus metric mapping
This appendix contains a mapping for converting metrics from StatsD format to Prometheus format, as explained in chapter 15. This mapping is also provided in the book’s GitHub repository (https://mng.bz/Ow82), where it’s demonstrated using the Prometheus StatsD exporter. The StatsD exporter takes StatsD metrics provided by Airflow and exposes them in a format Prometheus can read. Some conversions, however, aren’t efficient or in line with Prometheus’s naming conventions, so this mapping explicitly maps Airflow’s StatsD metrics to Prometheus metrics. Because Airflow is an open source project, this mapping is subject to change.