Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
docker
Docker Compose Prometheus and Grafana
Commits
c3ed0624
Commit
c3ed0624
authored
Jul 13, 2020
by
Jay Ta'ala
Browse files
Added "shortname" label. Set scrape for bb to 15s.
parent
06039730
Changes
1
Hide whitespace changes
Inline
Side-by-side
prometheus.yml
View file @
c3ed0624
...
...
@@ -34,7 +34,7 @@ scrape_configs:
-
targets
:
[
'
10.0.0.137:10091'
]
-
job_name
:
'
blackbox'
scrape_interval
:
20
s
scrape_interval
:
15
s
metrics_path
:
/probe
params
:
module
:
[
http_2xx
]
# Look for a HTTP 200 response.
...
...
@@ -59,3 +59,8 @@ scrape_configs:
target_label
:
instance
-
target_label
:
__address__
replacement
:
bbexp:9115
# The blackbox exporter's real hostname:port.
metric_relabel_configs
:
-
source_labels
:
[
instance
]
regex
:
'
.*/(.+?)[:.].*'
replacement
:
'
$1'
target_label
:
shortname
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment