-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jcj <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
--- | ||
metric_id: metric-prowler-compliance | ||
metric_id: metric-prowler-compliance-count | ||
name: Compliance Count | ||
metric_type: GAUGE | ||
resource_type: inventory.CloudService:aws.Prowler.CIS-2.0 | ||
resource_type: inventory.CloudService | ||
query_options: | ||
fields: | ||
value: | ||
operator: count | ||
group_by: | ||
- key: cloud_service_type | ||
name: Compliance Framework | ||
- key: data.status | ||
name: Status | ||
- key: data.severity | ||
name: Severity | ||
- key: data.service | ||
name: Service | ||
filter: | ||
- key: cloud_service_group | ||
value: Prowler | ||
unit: Count | ||
namespace_id: ns-prowler-compliance | ||
version: '1.0' |
20 changes: 0 additions & 20 deletions
20
src/plugin/metrics/Prowler/Compliance/fail_check_count.yaml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
metric_id: metric-prowler-findings-count | ||
name: Findings Count | ||
metric_type: GAUGE | ||
resource_type: inventory.CloudService | ||
query_options: | ||
unwind: | ||
path: data.findings | ||
fields: | ||
value: | ||
operator: count | ||
group_by: | ||
- key: cloud_service_type | ||
name: Compliance Framework | ||
- key: data.findings.status | ||
name: Status | ||
- key: data.findings.region_code | ||
name: Region | ||
- key: data.findings.resource_type | ||
name: Resource Type | ||
filter: | ||
- key: cloud_service_group | ||
value: Prowler | ||
unit: Count | ||
namespace_id: ns-prowler-compliance | ||
version: '1.0' |
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