Andrew Jones created AIRFLOW-1673:
-------------------------------------

             Summary: dagrun.dependency-check stat contains space in metric name
                 Key: AIRFLOW-1673
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1673
             Project: Apache Airflow
          Issue Type: Bug
          Components: core
    Affects Versions: 1.8.2
            Reporter: Andrew Jones
            Priority: Minor


In {{models.py}}, we save a stat with the 
[https://github.com/apache/incubator-airflow/blob/afd927a256d8ff97e59b28a3caf81ac0bf0d07f3/airflow/models.py#L4563
 following code]:

{code}
Stats.timing("dagrun.dependency-check.{}.{}".
                     format(self.dag_id, self.execution_date), duration)
{code}

{{self.execution_date}} is introducing a space in the metric name, so what gets 
sent to stats is something like this:

{code}
airflow.dagrun.dependency-check.dagid.2017-09-25 00:00:00:32.253000|ms
{code}

A space isn't valid here and should be removed.

We could either remove the space from the datetime, save only the date, or 
remove the datetime from the stat name completely.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to