Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
intranet
Commits
2923be28c5b0
Commit
6cd0a61c
authored
May 28, 2021
by
Arthur Lutz
Browse files
[Docker/package] use prometheus cube and activate some metrics
parent
380d4ba06620
Changes
3
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
2923be28
...
...
@@ -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
cubicweb_intranet/__pkginfo__.py
View file @
2923be28
...
...
@@ -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"
,
}
cubicweb_intranet/migration/2.3.0_Any.py
0 → 100644
View file @
2923be28
add_cube
(
"prometheus"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment