solve backfill metrik extrapolation with unless

This commit is contained in:
Martin Ptáček
2023-06-16 16:29:22 +02:00
parent b9645a9c0a
commit 96af995039
4 changed files with 11 additions and 0 deletions

View File

@ -15,3 +15,9 @@ remote_write:
remote_timeout: "30s" remote_timeout: "30s"
send_exemplars: false send_exemplars: false
follow_redirects: true follow_redirects: true
write_relabel_configs:
- source_labels: [instance]
regex: '(.+)'
target_label: instance
replacement: mylabel

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -7,6 +7,9 @@ scrape_configs:
static_configs: static_configs:
- targets: ["localhost:9090"] # scrape prometheus itself - targets: ["localhost:9090"] # scrape prometheus itself
labels:
backfill: 'false'
- job_name: "android phones" - job_name: "android phones"
proxy_url: "http://pushprox:8080" #TODO add mobile phones here proxy_url: "http://pushprox:8080" #TODO add mobile phones here
@ -16,3 +19,5 @@ scrape_configs:
- targets: [ - targets: [
"test.example.com" "test.example.com"
] ]
labels:
backfill: 'false'