Commit 6cd0a61c authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[Docker/package] use prometheus cube and activate some metrics

parent 380d4ba06620
......@@ -7,6 +7,14 @@ RUN cp /src/docker/pyramid.ini.j2 /pyramid.ini.j2
# enable stats socket used by uwsgi prometheus exporter
RUN echo "memory-report = true" >> /etc/uwsgi/uwsgi.ini
RUN echo "stats = 127.0.0.1:8001" >> /etc/uwsgi/uwsgi.ini
# enable prometheus cube
RUN echo "prometheus.pyramid.http_requests = True" >> /pyramid.ini.j2
RUN echo "prometheus.pyramid.current_requests = True" >> /pyramid.ini.j2
RUN echo "prometheus.pyramid.slow_routes = True" >> /pyramid.ini.j2
RUN echo "prometheus.pyramid.time_routes = True" >> /pyramid.ini.j2
RUN echo "prometheus.pyramid.count_routes = True" >> /pyramid.ini.j2
RUN echo "prometheus.cubicweb.sql.time = Histogram" >> /pyramid.ini.j2
RUN echo "prometheus.cubicweb.rql.time = Histogram" >> /pyramid.ini.j2
USER cubicweb
ENV CW_INSTANCE=intranet
RUN docker-cubicweb-helper create-instance
......@@ -4,7 +4,7 @@
modname = "intranet"
distname = "cubicweb-intranet"
numversion = (2, 2, 0)
numversion = (2, 3, 0)
version = ".".join(str(num) for num in numversion)
license = "LGPL"
......@@ -42,4 +42,5 @@ __depends__ = {
"cubicweb-signedrequest": ">=1.0.0,<1.1.0",
"cubicweb-tag": ">=1.9.0,<1.10.0",
"cubicweb-task": ">=1.9.0,<1.10.0",
"cubicweb-prometheus": ">=0.1.3,<0.2.0",
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment