Skip to content

Fix parse_usage_ping_keys method to test metrics with schemas

What does this MR do?

Related to #335532 (closed).

This modifies parsing Service Ping (formerly Usage Ping) in Every metric definition specs to stop and do not evaluate data structure inside metrics that have value_json_schema defined in their metric definitions. These can have various non-standard structures (including Arrays and keys that do not have their own metric definitions) and will fail the spec.

Instead, their structure is validated by a JSON Schema file, whose path is given in value_json_schema. topology and histograms are now supported by the specs and have been removed from the ignored key patterns.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Piotr Skorupa

Merge request reports