Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/grafana-agent
Path: blob/main/operations/agent-flow-mixin/grizzly/alerts.jsonnet
4094 views
local mixin = import '../mixin.libsonnet';

{
  prometheus_rules: std.map(
    function(group)
      {
        apiVersion: 'grizzly.grafana.com/v1alpha1',
        kind: 'PrometheusRuleGroup',
        metadata: {
          namespace: 'agent-flow',
          name: group.name,
        },
        spec: group,
      },
    mixin.prometheusAlerts.groups
  ),
}