prometheus issueshttps://forge.extranet.logilab.fr/cubicweb/cubes/prometheus/-/issues2021-06-25T10:15:08Zhttps://forge.extranet.logilab.fr/cubicweb/cubes/prometheus/-/issues/6when option in pyramid.ini set to false, considered as activated2021-06-25T10:15:08ZArthur Lutzwhen option in pyramid.ini set to false, considered as activatedwhen using
```
prometheus.pyramid.slow_routes = False
```
It is still activated (since the code checks if it is in the config, not if it's true or false)when using
```
prometheus.pyramid.slow_routes = False
```
It is still activated (since the code checks if it is in the config, not if it's true or false)https://forge.extranet.logilab.fr/cubicweb/cubes/prometheus/-/issues/5KeyError: 'slow_route'2021-06-25T11:52:14ZArthur LutzKeyError: 'slow_route'```
KeyError: 'slow_route'
File "pyramid/router.py", line 270, in __call__
response = self.execution_policy(environ, self)
File "pyramid/router.py", line 279, in default_execution_policy
return request.invoke_exception_view(r...```
KeyError: 'slow_route'
File "pyramid/router.py", line 270, in __call__
response = self.execution_policy(environ, self)
File "pyramid/router.py", line 279, in default_execution_policy
return request.invoke_exception_view(reraise=True)
File "pyramid/view.py", line 768, in invoke_exception_view
reraise_(*exc_info)
File "pyramid/compat.py", line 179, in reraise
raise value
File "pyramid/router.py", line 277, in default_execution_policy
return router.invoke_request(request)
File "pyramid/router.py", line 249, in invoke_request
response = handle_request(request)
File "cubicweb_francearchives/pviews/tweens.py", line 56, in sanitize_parameters_tween
return handler(request)
File "cubicweb_francearchives/pviews/tweens.py", line 103, in script_name_factory
return handler(request)
File "cubicweb_francearchives/pviews/tweens.py", line 86, in https_tween
return handler(request)
File "cubicweb_francearchives/pviews/tweens.py", line 74, in langprefix_tween
response = handler(request)
File "cubicweb_prometheus/views.py", line 137, in tween
PD_METRICS["slow_route"].labels(route_name).inc()
```https://forge.extranet.logilab.fr/cubicweb/cubes/prometheus/-/issues/4See how we can interact / build upon uwsgi_exporter2021-05-25T13:23:11ZArthur LutzSee how we can interact / build upon uwsgi_exporterhttps://github.com/timonwong/uwsgi_exporter looks promising as it seems "easy" to plug'n'play with our existing deployments (docker-cubicweb uses uwsgi by default)
See if projects can be used / combined / etc.https://github.com/timonwong/uwsgi_exporter looks promising as it seems "easy" to plug'n'play with our existing deployments (docker-cubicweb uses uwsgi by default)
See if projects can be used / combined / etc.https://forge.extranet.logilab.fr/cubicweb/cubes/prometheus/-/issues/3See what can be done with pyprometheus2021-05-25T13:21:52ZArthur LutzSee what can be done with pyprometheushttps://github.com/Lispython/pyprometheus/ Prometheus instrumentation library for Python applications (with UWSGI support)
It seems some of the work we're trying to do here is already done there. No ?https://github.com/Lispython/pyprometheus/ Prometheus instrumentation library for Python applications (with UWSGI support)
It seems some of the work we're trying to do here is already done there. No ?https://forge.extranet.logilab.fr/cubicweb/cubes/prometheus/-/issues/2Add the ability to add metrics2021-05-11T16:47:17ZElouan MartinetAdd the ability to add metricsIn a project, we use our own implementation of a metrics view in Prometheus format.
We would like to have access to functions to setup our objects so that a single metrics view can be used for all the metrics.In a project, we use our own implementation of a metrics view in Prometheus format.
We would like to have access to functions to setup our objects so that a single metrics view can be used for all the metrics.https://forge.extranet.logilab.fr/cubicweb/cubes/prometheus/-/issues/1suggestion: allow the same mechanism than node_exporter that allow to append ...2021-05-11T15:48:37ZLaurent Peuchsuggestion: allow the same mechanism than node_exporter that allow to append more metric on the same routeOn prometheus' node_export you can give the cli argument "--path-to-folder=/a/b/c" and it will read every file in it and append to the content of the file the route it exposes.
This would allow client projects to add more metrics to the...On prometheus' node_export you can give the cli argument "--path-to-folder=/a/b/c" and it will read every file in it and append to the content of the file the route it exposes.
This would allow client projects to add more metrics to the existing route.