You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2019. It is now read-only.
More specifically when i have this line in my metrics.yaml Users[].{create_date: CreateDate, value: 1}
The error is in this function, when v is expected to be a string, however CreateDate is returned as an datetime object, which cause v.replace('\\', r'\\') errors out.
this can be fixed by changing line 78 in exposition.py to k, str(v).replace('\\', r'\\').replace('\n', r'\n').replace('"', r'\"'))
when I'm trying to export CreateDate the exporter fails because of an error in exposition.py in prometheus/client_python
More specifically when i have this line in my metrics.yaml
Users[].{create_date: CreateDate, value:
1}
The error is in this function, when v is expected to be a string, however CreateDate is returned as an datetime object, which cause
v.replace('\\', r'\\')
errors out.this can be fixed by changing line 78 in exposition.py to
k, str(v).replace('\\', r'\\').replace('\n', r'\n').replace('"', r'\"'))
I have made a fork here with the changes
The text was updated successfully, but these errors were encountered: