forked from jetstack/dependency-track-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: high cardinality policy_violations metrics (#1)
* fix: high cardinality policy_violations metrics The exporter initialises all possible labels of dependency_track_project_policy_violations metrics which adds 72 metrics for each project. jetstack#53 has details of the rational but there are usecases where it is desirable to only have non-zero values of the metrics available. This change adds a new argument that enables only non-zero value metrics to be returned. This flag defaults to the current behaviour so is an opt in feature. * docs: add flag to readme
- Loading branch information
1 parent
b4b3d3c
commit 5c03ea7
Showing
3 changed files
with
41 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters