Emit dag_processing.last_run.seconds_ago with dag_file as a tag#62487
Merged
jscheffl merged 1 commit intoJun 14, 2026
Merged
Conversation
7e20677 to
150c858
Compare
Contributor
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
ed36b84 to
5711236
Compare
eladkal
approved these changes
Jun 11, 2026
Move dag_processing.last_run.seconds_ago.{dag_file} to a tagged metric
dag_processing.last_run.seconds_ago with file_path, bundle_name and
file_name tags. file_path and bundle_name together uniquely identify a
DAG file (the same file name can exist in different folders or bundles),
and file_name is kept as a tag to ease migration from the legacy metric.
The legacy interpolated name is registered as the metric's legacy_name,
so it is still emitted by default (controlled by [metrics] legacy_names_on),
preserving backward compatibility.
5711236 to
f74c3b3
Compare
jscheffl
approved these changes
Jun 14, 2026
pgagnon
pushed a commit
to pgagnon/airflow
that referenced
this pull request
Jun 15, 2026
…2487) Move dag_processing.last_run.seconds_ago.{dag_file} to a tagged metric dag_processing.last_run.seconds_ago with file_path, bundle_name and file_name tags. file_path and bundle_name together uniquely identify a DAG file (the same file name can exist in different folders or bundles), and file_name is kept as a tag to ease migration from the legacy metric. The legacy interpolated name is registered as the metric's legacy_name, so it is still emitted by default (controlled by [metrics] legacy_names_on), preserving backward compatibility.
imrichardwu
pushed a commit
to imrichardwu/airflow
that referenced
this pull request
Jun 16, 2026
…2487) Move dag_processing.last_run.seconds_ago.{dag_file} to a tagged metric dag_processing.last_run.seconds_ago with file_path, bundle_name and file_name tags. file_path and bundle_name together uniquely identify a DAG file (the same file name can exist in different folders or bundles), and file_name is kept as a tag to ease migration from the legacy metric. The legacy interpolated name is registered as the metric's legacy_name, so it is still emitted by default (controlled by [metrics] legacy_names_on), preserving backward compatibility.
dingo4dev
pushed a commit
to dingo4dev/airflow
that referenced
this pull request
Jun 16, 2026
…2487) Move dag_processing.last_run.seconds_ago.{dag_file} to a tagged metric dag_processing.last_run.seconds_ago with file_path, bundle_name and file_name tags. file_path and bundle_name together uniquely identify a DAG file (the same file name can exist in different folders or bundles), and file_name is kept as a tag to ease migration from the legacy metric. The legacy interpolated name is registered as the metric's legacy_name, so it is still emitted by default (controlled by [metrics] legacy_names_on), preserving backward compatibility.
RulerChen
pushed a commit
to RulerChen/airflow
that referenced
this pull request
Jun 16, 2026
…2487) Move dag_processing.last_run.seconds_ago.{dag_file} to a tagged metric dag_processing.last_run.seconds_ago with file_path, bundle_name and file_name tags. file_path and bundle_name together uniquely identify a DAG file (the same file name can exist in different folders or bundles), and file_name is kept as a tag to ease migration from the legacy metric. The legacy interpolated name is registered as the metric's legacy_name, so it is still emitted by default (controlled by [metrics] legacy_names_on), preserving backward compatibility.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves
dag_processing.last_run.seconds_ago.{dag_file}to a tagged metricdag_processing.last_run.seconds_ago.The new metric is emitted with three tags:
file_path: the full (normalized) relative file pathbundle_name: the (normalized) bundle namefile_name: the (normalized) file name stemfile_pathandbundle_nametogether uniquely identify a DAG file (the same file name can exist in different folders or bundles).file_nameis kept as a tag to ease migration from the legacy interpolated metric.The old interpolated name
dag_processing.last_run.seconds_ago.{dag_file}is registered as the metric'slegacy_name, so it is still emitted by default and can be disabled via[metrics] legacy_names_on, preserving backward compatibility.