opensearch-project/opensearch-prometheus-exporter

Implement new tests to improve coverage of exposed metrics.

Open

#219 创建于 2023年8月31日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Java (86 fork)github user discovery
good first issue

仓库指标

Star
 (205 star)
PR 合并指标
 (PR 指标待抓取)

描述

When new metrics are introduced in OpenSearch we do not learn about this when upgrading. There is simply no logic to automatically detect this and those new metric stay unnoticed.

To improve this situation we can implement a new set of tests that will pull JSON data containing metrics and count number of members of the JSON structure and compare to hard-coded numbers. This way we can easily learn that something new was added. Theoretically we can miss the case when one metric is removed and one added (the count will be the same) but this will be caught by other existing tests that "call specific metrics by name".

贡献者指南