Skip to content

Commit f65edf3

Browse files
someshwaranMbasepi
andauthored
Added the psutil command with the elastic-apm[flask] installation to avoid metrics error (#1751)
* Added the psutil command with the elastic-apm[flask] installation to avoid metrics error The psutil is required to push the elasticapm.metrics.sets otherwise, the service is not visible in the APM > Services module. * Fix pre-commit * Simplify docs note --------- Co-authored-by: Colton Myers <[email protected]>
1 parent 4102f8f commit f65edf3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pycqa/isort
3-
rev: 5.10.1
3+
rev: 5.12.0
44
hooks:
55
- id: isort
66
exclude: "(elasticapm/utils/wrapt/.*|tests/utils/stacks/linenos.py|tests/utils/stacks/linenos2.py|tests/contrib/grpc/grpc_app/.*pb2.*.py)"

docs/flask.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ NOTE: If you use Flask with uwsgi, make sure to
2323
http://uwsgi-docs.readthedocs.org/en/latest/Options.html#enable-threads[enable
2424
threads].
2525

26+
NOTE: If you see an error log that mentions `psutil not found`, you can install
27+
`psutil` using `pip install psutil`, or add `psutil` to your `requirements.txt`
28+
file.
29+
2630
[float]
2731
[[flask-setup]]
2832
==== Setup

0 commit comments

Comments
 (0)