Skip to content

Commit

Permalink
wip: add resource metadata in metrics labels
Browse files Browse the repository at this point in the history
demeringo committed Nov 18, 2023
1 parent bd9378e commit e7aa725
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cloud-scanner-cli/src/metric_exporter.rs
Original file line number Diff line number Diff line change
@@ -22,6 +22,14 @@ pub struct Labels {
pub country: String,
}

// This is the kind of thing we want to duplicate as get_metrics(resource_wiyh_impacts: &Cloud_Resource_wiyth_impact)
// Set labels specific to the resource (region, country, resource id, resource type, maybe resource state)
// create a registry
// Create the metric
// register each metric (one day this should be dynamic on each dimenstion of the asesment)
// set the value


/// Retursn the ImpactsSumary as metrics in the prometheus format
pub fn get_metrics(summary: &ImpactsSummary) -> Result<String> {
let label_set: Labels = Labels {

0 comments on commit e7aa725

Please sign in to comment.