fix: Reduce high cardinality in ProvMnS API client metrics 90/142790/5
authoremaclee <lee.anjella.macabuhay@est.tech>
Mon, 22 Dec 2025 13:42:59 +0000 (13:42 +0000)
committeremaclee <lee.anjella.macabuhay@est.tech>
Mon, 22 Dec 2025 17:35:48 +0000 (17:35 +0000)
commit0225bbef62bc046d3b8e31d7cbca634eea35d394
tree2e9b18d35e90e0dccb020250675a8680657fdf64
parente70c8f2ba23a2d02b720208b1b5d370a03373932
fix: Reduce high cardinality in ProvMnS API client metrics

- Add ClientRequestMetricsTagCustomizer to template FDN values in URI metrics
- Apply custom metrics handler to DMI WebClients
- Template URI from /ProvMnS/v1/SubNetwork=A/ManagedElement=E to /ProvMnS/v1/{fdn}
- Preserve query parameters as templates for operational visibility
- Fix existing tests to handle new WebClient configuration dependencies

Issue-ID: CPS-3067
Change-Id: I98b972a9d84f6e6710e82ae73bc5499771c3a340
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/dmi/DmiWebClientsConfiguration.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/provmns/http/ClientRequestMetricsTagCustomizer.java [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/dmi/DmiRestClientIntegrationSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/dmi/DmiWebClientsConfigurationSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/provmns/http/ClientRequestMetricsTagCustomizerSpec.groovy [new file with mode: 0644]