Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metric collector is failing when meet with DagRun in "empty" state #51

Open
KulykDmytro opened this issue Sep 6, 2021 · 0 comments
Open

Comments

@KulykDmytro
Copy link

[2021-09-03 12:52:35,747] {app.py:1891} ERROR - Exception on /admin/metrics/ [GET]
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/airflow/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow_prometheus_exporter/prometheus_exporter.py", line 492, in list
    return Response(generate_latest(), mimetype='text')
  File "/home/airflow/.local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 137, in generate_latest
    output.append(sample_line(s))
  File "/home/airflow/.local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 93, in sample_line
    ['{0}="{1}"'.format(
  File "/home/airflow/.local/lib/python3.8/site-packages/prometheus_client/exposition.py", line 94, in <listcomp>
    k, v.replace('\\', r'\\').replace('\n', r'\n').replace('"', r'\"'))
AttributeError: ("'NoneType' object has no attribute 'replace'", Metric(airflow_dag_status, Shows the number of dag starts with this status, gauge, , [Sample(name='airflow_dag_status', labels={'dag_id': 'adpool_hourly', 'owner': 'airflow', 'status': 'failed'}, value=16, timestamp=None, exemplar=None), ...]))
@KulykDmytro KulykDmytro changed the title Metric collector is failing when meet with DAgRun in "empty" state Metric collector is failing when meet with DagRun in "empty" state Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant