Skip to content

Latest commit

 

History

History
37 lines (33 loc) · 1.38 KB

README.md

File metadata and controls

37 lines (33 loc) · 1.38 KB

cilium-mixin

Using with kube-prometheus

Configuration

These are the available fields with respective default values that can be overridden

{
  _config+:: {
    cilium+:: {
      namespace: 'kube-system', # namespace in which cilium is installed
      enableHubble: true, # will create serviceMonitor object for hubble if enabled
    }
  }
}

Example Usage

local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
           (import 'cilium-mixin/kube-prometheus-cilium.libsonnet') + {
  _config+:: {
    cilium+:: {
      namespace: 'cilium-system',
      enableHubble: false,
    }
  }
};

{ ['00namespace-' + name]: kp.kubePrometheus[name] for name in std.objectFields(kp.kubePrometheus) } +
{ ['0prometheus-operator-' + name]: kp.prometheusOperator[name] for name in std.objectFields(kp.prometheusOperator) } +
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
{ ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } +
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) }