grafana / cloudcost-exporter

Prometheus Exporter for Cloud Provider agnostic cost metrics
Apache License 2.0
66 stars 4 forks source link

Setup integration tests for prometheus metrics #33

Closed Pokom closed 11 months ago

Pokom commented 11 months ago

Overview

There are currently no tests that check the validity of metrics that are exported. This means that effectively someone needs to run the application manually in order to validate that the different collectors are behaving appropriately. @skl mentioned that prometheus's golang client has a testutil package that can be used for this.

### Tasks
- [x] Setup tests for aws
- [x] Setup tests for gcp
skl commented 11 months ago

AWS tests introduced in:

Pokom commented 11 months ago

GCP tests intoduced in: