Scrape all metrics and add them to cps documentation 00/140700/8
authorhalil.cakal <halil.cakal@est.tech>
Thu, 10 Apr 2025 13:02:54 +0000 (14:02 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Wed, 23 Apr 2025 12:03:16 +0000 (13:03 +0100)
commitcba3ae8d48b36ed0d96eba4f1dd3ca411c560d4d
tree146550288cfd5190c55d2db5c1dacbd6b4206461
parent98db0ffdc107b8ca8a66af61bead58b62fb46514
Scrape all metrics and add them to cps documentation

- add a new dummy annotation (TimedCustom) for Gauge metrics (cm handle state)
- add a description field for the counter annotation (CountCmHandleSearchExecution)
- add a python script (with tests) to scrape the metrics mentioned above
  using a single regex for all
- remove redundancies (distribution management) from pom.xml of
  checkstyle module since there is no artifact released from checkstyle
- import and display the output (metrics.cvs) in admin-guide docs

Issue-ID: CPS-2709

Change-Id: Iaee23f0a20c05e5aea033baacad1f23cb61e8b34
Signed-off-by: halil.cakal <halil.cakal@est.tech>
.gitignore
checkstyle/pom.xml
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java [changed mode: 0755->0644]
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java [changed mode: 0755->0644]
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/CountCmHandleSearchExecution.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/config/CmHandleStateGaugeConfig.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/config/TimedCustom.java [new file with mode: 0644]
docs/ScrapeMetrics.py [new file with mode: 0644]
docs/admin-guide.rst
docs/csv/metrics.csv [new file with mode: 0644]
docs/test_ScrapeMetrics.py [new file with mode: 0644]