include the blackbox exporter mixin by default
This commit is contained in:
@@ -734,8 +734,7 @@ See [exposing Prometheus/Alertmanager/Grafana](docs/exposing-prometheus-alertman
|
|||||||
|
|
||||||
```jsonnet
|
```jsonnet
|
||||||
local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
|
local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
|
||||||
// ... other necessary mixins ...
|
// ... all necessary mixins ...
|
||||||
(import 'kube-prometheus/blackbox-exporter/blackbox-exporter.libsonnet') +
|
|
||||||
{
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
// ... configuration for other features ...
|
// ... configuration for other features ...
|
||||||
|
|||||||
@@ -4,12 +4,8 @@ The `prometheus-operator` defines a `Probe` resource type that can be used to de
|
|||||||
|
|
||||||
## Adding blackbox exporter manifests to an existing `kube-prometheus` configuration
|
## Adding blackbox exporter manifests to an existing `kube-prometheus` configuration
|
||||||
|
|
||||||
1. Add the blackbox exporter mixin to the list of imports:
|
1. Override blackbox-related configuration parameters as needed.
|
||||||
```
|
2. Add the following to the list of renderers to render the blackbox exporter manifests:
|
||||||
(import 'kube-prometheus/blackbox-exporter/blackbox-exporter.libsonnet')
|
|
||||||
```
|
|
||||||
2. Override blackbox-related configuration parameters as needed.
|
|
||||||
3. Add the following to the list of renderers to render the blackbox exporter manifests:
|
|
||||||
```
|
```
|
||||||
{ ['blackbox-exporter-' + name]: kp.blackboxExporter[name] for name in std.objectFields(kp.blackboxExporter) }
|
{ ['blackbox-exporter-' + name]: kp.blackboxExporter[name] for name in std.objectFields(kp.blackboxExporter) }
|
||||||
```
|
```
|
||||||
@@ -35,7 +31,6 @@ The `prometheus-operator` defines a `Probe` resource type that can be used to de
|
|||||||
```jsonnet
|
```jsonnet
|
||||||
local kp =
|
local kp =
|
||||||
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
||||||
(import 'kube-prometheus/blackbox-exporter/blackbox-exporter.libsonnet')
|
|
||||||
{
|
{
|
||||||
_config+:: {
|
_config+:: {
|
||||||
namespace: 'monitoring',
|
namespace: 'monitoring',
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ local kubeRbacProxyContainer = import './kube-rbac-proxy/container.libsonnet';
|
|||||||
(import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/mixin.libsonnet') +
|
(import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-state-metrics-mixin/mixin.libsonnet') +
|
||||||
(import './node-exporter/node-exporter.libsonnet') +
|
(import './node-exporter/node-exporter.libsonnet') +
|
||||||
(import 'github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet') +
|
(import 'github.com/prometheus/node_exporter/docs/node-mixin/mixin.libsonnet') +
|
||||||
|
(import './blackbox-exporter/blackbox-exporter.libsonnet') +
|
||||||
(import './alertmanager/alertmanager.libsonnet') +
|
(import './alertmanager/alertmanager.libsonnet') +
|
||||||
(import 'github.com/prometheus/alertmanager/doc/alertmanager-mixin/mixin.libsonnet') +
|
(import 'github.com/prometheus/alertmanager/doc/alertmanager-mixin/mixin.libsonnet') +
|
||||||
(import 'github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheus-operator.libsonnet') +
|
(import 'github.com/prometheus-operator/prometheus-operator/jsonnet/prometheus-operator/prometheus-operator.libsonnet') +
|
||||||
|
|||||||
Reference in New Issue
Block a user