newrelic-experimental / gitlab

Gitlab exporters to send metrics,logs,traces to New Relic
9 stars 6 forks source link

Error with image tag 1.0.1 #7

Closed silanpa closed 1 year ago

silanpa commented 1 year ago

Error produce in gitlab.com. The data is sent but finish the pipeline with some error.

All data sent to New Relic for pipeline: 781175679
Terminating...
Traceback (most recent call last):
  File "/app/exporter.py", line 206, in <module>
    send_to_nr()
  File "/app/exporter.py", line 205, in send_to_nr
    p_parent.end(end_time=do_time(str(pipeline_att['finished_at'])))
  File "/app/custom_parsers/__init__.py", line 6, in do_time
    return (int(round(time.mktime(parse(string).timetuple())) * 1000000000))
  File "/usr/local/lib/python3.10/site-packages/pyrfc[33](https://gitlab.com/cencosud-ds/cencommerce/dev-platform/platform/delivery/monitor-gitlab-opentelemetry-poc/-/jobs/3791030742#L33)[39](https://gitlab.com/cencosud-ds/cencommerce/dev-platform/platform/delivery/monitor-gitlab-opentelemetry-poc/-/jobs/3791030742#L39)/parser.py", line 87, in parse
    raise ValueError("timestamp does not conform to RFC 3339")
ValueError: timestamp does not conform to RFC 3339
sys:1: ResourceWarning: unclosed <ssl.SSLSocket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('172.17.0.3', [40](https://gitlab.com/cencosud-ds/cencommerce/dev-platform/platform/delivery/monitor-gitlab-opentelemetry-poc/-/jobs/3791030742#L40)284), raddr=('172.65.251.78', 443)>
dpacheconr commented 1 year ago

thanks for reporting @silanpa, I am still working on that tag and will officially release most likely on Monday

silanpa commented 1 year ago

@dpacheconr I tried updating the image(b31a8c6cdd4b0fccdc0d351c1d0f37d188d2a0606fc7af057162107dde6a4fb5), but now the error is blocking. I leave you the detail of the error.

Using docker image sha256:6ec084f902381f5096fee598e61b754d3832ce60a0695c75c489e0ab15bc281a for dpacheconr/gitlab-exporter:1.0.1 with digest dpacheconr/gitlab-exporter@sha256:b31a8c6cdd4b0fccdc0d351c1d0f37d188d2a0606fc7af057162107dde6a4fb5 ...
Traceback (most recent call last):
  File "/app/exporter.py", line 10, in <module>
    from global_variables import *
  File "/app/global_variables.py", line 63, in <module>
    gl = gitlab.Gitlab(url=str(GLAB_ENDPOINT),private_token="{}".format(GLAB_TOKEN),obey_rate_limit=False)
  File "/usr/local/lib/python3.10/site-packages/gitlab/client.py", line 105, in __init__
    self._backend = _backend(**kwargs)
TypeError: RequestsBackend.__init__() got an unexpected keyword argument 'obey_rate_limit'
dpacheconr commented 1 year ago

hi @silanpa I can't replicate the error, but I believe I think I know what can cause it -> obey_rate_limit=False I have updated the base image please have another go and let us know

silanpa commented 1 year ago

Ok, thanks. I going to test.