Skip to content

Commit

Permalink
doc: metrics allow_list complet example (apache#40120)
Browse files Browse the repository at this point in the history
Co-authored-by: raphaelauv <raphaelauv@users.noreply.github.com>
  • Loading branch information
2 people authored and romsharon98 committed Jul 26, 2024
1 parent 82d94e4 commit e4ab07f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions airflow/config_templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,8 @@ metrics:
If ``[metrics] metrics_use_pattern_match`` is ``true``, provide regex patterns to match.
version_added: 2.6.0
type: string
example: "\"scheduler,executor,dagrun\" or \"^scheduler,^executor,heartbeat|timeout\""
example: "\"scheduler,executor,dagrun,pool,triggerer,celery\"
or \"^scheduler,^executor,heartbeat|timeout\""
default: ""
metrics_block_list:
description: |
Expand All @@ -1070,7 +1071,8 @@ metrics:
If ``[metrics] metrics_use_pattern_match`` is ``true``, provide regex patterns to match.
version_added: 2.6.0
type: string
example: "\"scheduler,executor,dagrun\" or \"^scheduler,^executor,heartbeat|timeout\""
example: "\"scheduler,executor,dagrun,pool,triggerer,celery\"
or \"^scheduler,^executor,heartbeat|timeout\""
default: ""
statsd_on:
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ of prefixes to send or block only the metrics that start with the elements of th
.. code-block:: ini
[metrics]
metrics_allow_list = scheduler,executor,dagrun
metrics_allow_list = scheduler,executor,dagrun,pool,triggerer,celery
.. code-block:: ini
[metrics]
metrics_block_list = scheduler,executor,dagrun
metrics_block_list = scheduler,executor,dagrun,pool,triggerer,celery
Rename Metrics
Expand Down

0 comments on commit e4ab07f

Please sign in to comment.