blob: 7689ee5b6d67afddfbae13ef9e258d04931cd859 [file] [log] [blame]
DylanB95EST7c943232021-09-22 10:38:21 +01001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright (C) 2021 Nordix Foundation
4
5.. DO NOT CHANGE THIS LABEL FOR RELEASE NOTES - EVEN THOUGH IT GIVES A WARNING
6.. _adminGuide:
7
8
9CPS Admin Guide
10###############
11
DylanB95EST7c943232021-09-22 10:38:21 +010012.. toctree::
13 :maxdepth: 1
14
ToineSiebelink39207852021-10-21 12:11:25 +010015.. Below Label is used by documentation for other CPS components to link here, do not remove even if it gives a warning
16.. _cps_common_logging:
17
DylanB95EST7c943232021-09-22 10:38:21 +010018Logging & Diagnostics
19=====================
lukegleesona0f97c12021-09-28 12:24:07 +010020
21General Guidelines
22------------------
23CPS-Core logs are sent to `STDOUT` in order to leverage the Kubernetes logging architecture.
24
25These logs are available using the following command:
26
27.. code:: bash
28
29 kubectl logs <cps-core-pod>
30
31The default configuration for CPS logs is the INFO level.
32
33This architecture also makes all logs ready to be sent to an Elastic-search Log-stash and Kibana (ELK) stack or similar.
34
35Enabling tracing for all executed sql statements is done by changing hibernate
36loggers log level
37
38Logger configuration is provided as a chart resource :
39
40 +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
41 | cps-component-service-name | logback.xml location |
42 +================================+=================================================================================================================================+
43 | cps-core | `logback.xml <https://github.com/onap/oom/blob/master/kubernetes/cps/components/cps-core/resources/config/logback.xml>`_ |
44 +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
45 | cps-temporal | `logback.xml <https://github.com/onap/oom/blob/master/kubernetes/cps/components/cps-temporal/resources/config/logback.xml>`_ |
46 +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
DylanB95EST3fcf8692021-10-11 16:29:16 +010047 | ncmp-dmi-plugin | Not yet applicable to DMI-Plugin |
lukegleesona0f97c12021-09-28 12:24:07 +010048 +--------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
49
ToineSiebelink39207852021-10-21 12:11:25 +010050.. Below Label is used by documentation for other CPS components to link here, do not remove even if it gives a warning
51.. _cps_common_monitoring:
52
lukegleesona0f97c12021-09-28 12:24:07 +010053Monitoring
54==========
55Once CPS-Core is deployed, information related to the running instance of the application is available
56
57.. code::
58
59 http://<cps-component-service-name>:8081/manage/info/
60
61Health
62------
63
64Cps-Core health status and state can be checked using the following endpoint.
65This also includes both the liveliness state and readiness state.
66
67.. code::
68
69 http://<cps-component-service-name>:8081/manage/health/
70
71Metrics
72-------
73
74Prometheus Metrics can be checked at the following endpoint
75
76.. code::
77
ToineSiebelink39207852021-10-21 12:11:25 +010078 http://<cps-component-service-name>:8081/manage/prometheus