-
Notifications
You must be signed in to change notification settings - Fork 36
Variables
🔗 Contents
environmentnotificationsprefixesfiltering_customfiltering_appenddisabledaggregation_functiontransformation_functionthresholdlasting_duration_secondsDEPRECATEDlasting_durationat_least_percentagerunbook_urltipauthorized_writer_teamsteamsmessage_bodymessage_subjectextra_tagsmax_delay
Every variables have different properties:
-
required: not to be confused with the terraform notion which make any variable without default value required. Here it means required to declare in the detectors templating. These variables could be dormant (empty value) but are declared as terraform variable in the module and this variable is used in the terraform resources. -
scopes: a variable must have, at least, one scope. In case of multiple scopes are supported so there exist different variable for each scope which could override the scope of its "higher version" variable. It could beglobal, perdetector(prefix name with[id]_) or perruleper detector (prefix name with[id]_and suffix it with_[severity]. -
typewhich refer to terraform type constraints -
description: a short summary of what it does
description: Infrastructure environment
type: string
required: true
scopes: global
description: Default notification recipients list per severity
type: object({ critical=list(string) major=list(string) minor=list(string) warning=list(string) info=list(string) })
required: true
scopes: global, detector
description: Prefixes list to prepend between brackets on every monitors names before environment
type: list
required: true
scopes: global
description: Filters as SignalFlow string to either replace or append to default filtering convention which is the only one used if not defined
type: string
required: true
scopes: global
description: If true, the filtering_custom string will be appended to the default filtering convention instead of fully replace it
type: bool
required: true
scopes: global
description:"Disable alerting rules. The global variable allowing to disabling all detectors of a module is detectors_disabled."
type: bool
required: true
scopes: global, detector, rule
description: Aggregation function and group by for [id] detector (i.e. .mean(by=['host']))
type: string
required: true
scopes: detector
description: Transformation function for [id] detector (i.e. .mean(over='5m'))"
type: string
required: true
scopes: detector
description: [severity] threshold for [id] detector"
type: number
required: true
scopes: rule
description: Use lasting_duration instead which allow define time unit and is per rule scope only
type: number
required: false
scopes: detector
description: Minimum duration that conditions must be true before raising alert
type: string
required: true
scopes: rule
description: Percentage of lasting that conditions must be true before raising alert (>= 0.0 and <= 1.0)
type: number
required: true
scopes: rule (DEPRECATED: detector)
description: URL like SignalFx dashboard or wiki page which can help to troubleshoot the incident cause
type: string
required: true
scopes: global, detector
description: Suggested first course of action or any note useful for incident handling
type: string
required: true
scopes: detector
description: List of teams IDs authorized to edit the detector. All admins are able to edit and must not be added to this. Be careful, if a list is defined so a long lived org token will not work anymore to apply. It will require a short lived user token from an authorized user (or an admin).
type: list(string)
required: true
scopes: global
description: List of teams IDs to associate the detector to. Be careful, you can also want to add this team as notification recipient also
type: list(string)
required: true
scopes: global
description: Allows the user to define his own body message template to any value. By default set to "" empty string it will use our internal template. Set it to null to use the default template from SignalFx (it works only if subject is also set to null).
type: string
required: true
scopes: global
description: Allows the user to define his own subject message template to any value. By default set to "" empty string it will use our internal template. Set it to null to use the default template from SignalFx (it works only if body is also set to null).
type: string
required: true
scopes: global
description: List of tags to append to the default ones automatically added from module for context purpose. For now, they are only usable from the API to find and filter detectors
type: list(string)
required: true
scopes: global
description: Allows the user to enforce a specific max delay for the detector. See the official documentation for more information about delayed datapoints. It can be set to either 0 or null to let SignalFx determine the minimum value dynamically. By default, it is null except for heartbeat based detectors where 900 is used to force evaluation to wait for any required properties.
type: number
required: false
scopes: detector