Packages

  • package root
    Definition Classes
    root
  • package nelson
    Definition Classes
    root
  • package alerts

    Contains code related to validating alerts and storing their configuration in Consul.

    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.

    Definition Classes
    nelson
  • Overhaul
  • Promtool
  • RuleRewriter

object RuleRewriter

Source
RuleRewriter.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RuleRewriter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Error(exitCode: Int, msg: String) extends RuntimeException with Product with Serializable

    Overhaul not called correctly

  2. final case class Invalid(msg: String) extends Result with Product with Serializable

    The prometheus rules parsed incorrectly

  3. abstract class Result extends Product with Serializable

    The result of calling the rule rewriter

  4. final case class Rewritten(transformed: String) extends Result with Product with Serializable

    Overhaul was able to translate the rules

Value Members

  1. val autoDetect: IO[RuleRewriter]
  2. val identity: RuleRewriter

    A rule rewriter that passes through rules verbatim

  3. def sanitize(s: String): String
  4. def toSerializedRules(prometheus: PrometheusConfig): String