1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-06 18:46:40 +01:00
Files
prometheus-operator/pkg/prometheus/testdata/probeObjectWithNonDefaultScrapeClassWithFallbackScrapeProtocol.golden
Jayapriya Pai d1c34e3769 feat: add fallbackScrapeProtocol to ScrapeClass
Signed-off-by: Jayapriya Pai <slashpai9@gmail.com>
2025-01-20 17:47:44 +05:30

58 lines
1.2 KiB
Plaintext
Generated

global:
scrape_interval: 30s
external_labels:
prometheus: default/test
prometheus_replica: $(POD_NAME)
evaluation_interval: 30s
scrape_configs:
- job_name: probe/default/defaultProbe
honor_timestamps: true
metrics_path: /probe
scheme: http
params:
module:
- http_2xx
fallback_scrape_protocol: PrometheusText0.0.4
static_configs:
- targets:
- prometheus.io
- promcon.io
labels:
namespace: custom
static: label
relabel_configs:
- source_labels:
- job
target_label: __tmp_prometheus_job_name
- source_labels:
- __address__
target_label: __param_target
- source_labels:
- __param_target
target_label: instance
- target_label: __address__
replacement: blackbox.exporter.io
- target_label: namespace
replacement: default
- source_labels:
- __param_target
- __tmp_hash
target_label: __tmp_hash
regex: (.+);
replacement: $1
action: replace
- source_labels:
- __tmp_hash
target_label: __tmp_hash
modulus: 1
action: hashmod
- source_labels:
- __tmp_hash
regex: $(SHARD)
action: keep
metric_relabel_configs:
- regex: noisy_labels.*
action: labeldrop
- target_label: namespace
replacement: default