Add prometheus metrics for searches and id-searches 07/140407/7
authormpriyank <priyank.maheshwari@est.tech>
Mon, 24 Feb 2025 15:23:09 +0000 (15:23 +0000)
committermpriyank <priyank.maheshwari@est.tech>
Thu, 13 Mar 2025 09:43:56 +0000 (09:43 +0000)
commit6957d0093eb370e0bf0be7dbb610430ea30c70a6
treef05e99fc21d93c641e1f212f9cf9907255ad3cab
parente3f1a24a575e5e7a49d11a83563ca742b593c0c1
Add prometheus metrics for searches and id-searches

- Added counter to record the number of invocations for id-searches and
  searches endpoint for cm handle ids
- introducing a cps-interface tag to differentiate between inventory
  id-search and traditional id-search endpoints
- used AOP to have minimal code in the controller layers

Issue-ID: CPS-2611
Change-Id: Ib7db2a25f5f71d11872b779a23d38c1f7931410f
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
cps-application/src/test/java/org/onap/cps/architecture/ArchitectureTestBase.java
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/CmHandleSearchExecutionCounter.java [new file with mode: 0644]
cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/CountCmHandleSearchExecution.java [new file with mode: 0644]
cps-ncmp-rest/src/test/groovy/org/onap/cps/ncmp/rest/util/CmHandleSearchExecutionCounterSpec.groovy [new file with mode: 0644]