mappings.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. ---
  18. mappings:
  19. # Map dot separated stats to labels
  20. - match: airflow.dagrun.dependency-check.*.*
  21. name: "airflow_dagrun_dependency_check"
  22. labels:
  23. dag_id: "$1"
  24. - match: airflow.operator_successes_(.*)
  25. match_type: regex
  26. name: "airflow_operator_successes"
  27. labels:
  28. operator: "$1"
  29. - match: airflow.operator_failures_(.*)
  30. match_type: regex
  31. name: "airflow_operator_failures"
  32. labels:
  33. operator: "$1"
  34. - match: airflow.scheduler_heartbeat
  35. match_type: regex
  36. name: "airflow_scheduler_heartbeat"
  37. labels:
  38. type: counter
  39. - match: airflow.dag.*.*.duration
  40. name: "airflow_task_duration"
  41. labels:
  42. dag_id: "$1"
  43. task_id: "$2"
  44. - match: airflow.dagrun.duration.success.*
  45. name: "airflow_dagrun_duration"
  46. labels:
  47. dag_id: "$1"
  48. - match: airflow.dagrun.duration.failed.*
  49. name: "airflow_dagrun_failed"
  50. labels:
  51. dag_id: "$1"
  52. - match: airflow.dagrun.schedule_delay.*
  53. name: "airflow_dagrun_schedule_delay"
  54. labels:
  55. dag_id: "$1"
  56. - match: airflow.dag_processing.last_runtime.*
  57. name: "airflow_dag_processing_last_runtime"
  58. labels:
  59. dag_file: "$1"
  60. - match: airflow.dag_processing.last_run.seconds_ago.*
  61. name: "airflow_dag_processing_last_run_seconds_ago"
  62. labels:
  63. dag_file: "$1"
  64. - match: airflow.pool.open_slots.*
  65. name: "airflow_pool_open_slots"
  66. labels:
  67. pool: "$1"
  68. - match: airflow.pool.used_slots.*
  69. name: "airflow_pool_used_slots"
  70. labels:
  71. pool: "$1"
  72. - match: airflow.pool.starving_tasks.*
  73. name: "airflow_pool_starving_tasks"
  74. labels:
  75. pool: "$1"