package alerts
Contains code related to validating alerts and storing their configuration in Consul.
In theory, we can support multiple alerting systems. In current practice, we only support Prometheus.
- Source
- package.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- alerts
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- trait RuleRewriter extends AnyRef
Value Members
- def alertingKey(stackName: StackName): String
-
def
deleteFromConsul(stackName: StackName): ConsulOpF[Unit]
Deletes an alert configuration from consul.
Deletes an alert configuration from consul. This includes alert definitions, recording rules, and per-namespace opt-outs.
- def optedOutPrometheusConfig(unit: UnitDef, outs: List[AlertOptOut]): PrometheusConfig
- def rewriteRules(unit: UnitDef, stackName: StackName, plan: PlanRef, ns: NamespaceName, outs: List[AlertOptOut]): IO[Either[NelsonError, String]]
-
def
writeToConsul(sn: StackName, ns: NamespaceName, plan: PlanRef, u: UnitDef, outs: List[AlertOptOut]): ConsulOpF[Option[String]]
Writes alert configuration to consul, if not opted out.
- object Overhaul extends RuleRewriter
- object Promtool
- object RuleRewriter