Appendix B. Prometheus metric mapping

 

This appendix holds a mapping for metrics from StatsD format to Prometheus format, as explained in chapter 15. It is also contained in the accompanying GitHub repository (https://github.com/godatadriven/data-pipelines-with-airflow-2nd-ed), where it is demonstrated using the Prometheus StatsD exporter. The StatsD exporter takes StatsD metrics (provided by Airflow) and exposes these in a format that Prometheus can read. However, some conversions are not efficient or in line with Prometheus’s naming conventions. Therefore, this mapping explicitly maps Airflow’s StatsD metrics to Prometheus metrics. Due to the nature of Airflow being an open source project, this mapping can be subject to change.