Skip to content

Commit

Permalink
disable azurerm_resource_health summary label by default
Browse files Browse the repository at this point in the history
reduce load on prometheus, needs to be enabed if needed

Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Sep 21, 2022
1 parent c3daab1 commit 880a9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Application Options:
--scrape.time.graph= Scrape time for Graph metrics (time.duration) [$SCRAPE_TIME_GRAPH]
--scrape.time.costs= Scrape time for costs/consumtion metrics (time.duration; BETA) (default: 0)
[$SCRAPE_TIME_COSTS]
--resourcehealth.summary.maxlength= Max length of ResourceHealth summary label (0 = disable summary label) (default: 80)
--resourcehealth.summary.maxlength= Max length of ResourceHealth summary label (0 = disable summary label) (default: 0)
[$RESOURCEHEALTH_SUMMARY_MAXLENGTH]
--graph.application.filter= MS Graph application $filter query eg: startswith(displayName,'A')
[$GRAPH_APPLICATION_FILTER]
Expand Down
2 changes: 1 addition & 1 deletion config/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type (
}

ResourceHealth struct {
SummaryMaxLength int `long:"resourcehealth.summary.maxlength" env:"RESOURCEHEALTH_SUMMARY_MAXLENGTH" description:"Max length of ResourceHealth summary label (0 = disable summary label)" default:"80"`
SummaryMaxLength int `long:"resourcehealth.summary.maxlength" env:"RESOURCEHEALTH_SUMMARY_MAXLENGTH" description:"Max length of ResourceHealth summary label (0 = disable summary label)" default:"0"`
}

// graph settings
Expand Down

0 comments on commit 880a9bd

Please sign in to comment.