Summary: this avoids starting an extra http server for the metrics (which is what GunicornPrometheusMetrics does) at port 9200,
the problem with that is that when running the container locally all metrics get redirected at the right endpoint via port 9200, but when running in kubernetes the custom metrics and the flask standard metrics seem to be sent to different ports... here we try to avoid that
it will need an edit to the tjeneste repo to scrape port 8000 instead of 9200
Related issue: #220
Suggested reviewer(s):
Reviewer checklist:
[ ] The headers of all files contain a reference to the repository license
[ ] 100% test coverage of new code - meaning:
[ ] The overall test coverage increased or remained the same as before
[ ] Every function is accompanied with a test suite
[ ] Tests are both positive (testing that the function work as intended with valid data) and negative (testing that the function behaves as expected with invalid data, e.g., that correct exceptions are thrown)
[ ] Functions with optional arguments have separate tests for all options
[ ] Examples are supported by doctests
[ ] All tests are passing
[ ] All names (e.g., files, classes, functions, variables) are explicit
[ ] Documentation (as docstrings) is complete and understandable
The checklist is based on the S-ENDA conventions and definition of done (see General Conventions). The above points are not necessarily relevant to all contributions. In that case, please add a short explanation to help the reviewer.
Summary: this avoids starting an extra http server for the metrics (which is what GunicornPrometheusMetrics does) at port 9200,
the problem with that is that when running the container locally all metrics get redirected at the right endpoint via port 9200, but when running in kubernetes the custom metrics and the flask standard metrics seem to be sent to different ports... here we try to avoid that
it will need an edit to the tjeneste repo to scrape port 8000 instead of 9200
Related issue: #220
Suggested reviewer(s):
Reviewer checklist:
The checklist is based on the S-ENDA conventions and definition of done (see General Conventions). The above points are not necessarily relevant to all contributions. In that case, please add a short explanation to help the reviewer.