Added response_timeout property

closes #2006
This commit is contained in:
Pierre Tessier
2016-11-07 11:34:02 -05:00
committed by Cameron Sparr
parent 08f03ceba2
commit 6f9de7ab3d
3 changed files with 19 additions and 2 deletions

View File

@@ -13,6 +13,17 @@ Example for Kubernetes apiserver
urls = ["http://my-kube-apiserver:8080/metrics"]
```
Specify a 10 second timeout for slower/over-loaded clients
```toml
# Get all metrics from Kube-apiserver
[[inputs.prometheus]]
# An array of urls to scrape metrics from.
urls = ["http://my-kube-apiserver:8080/metrics"]
# Specify timeout duration for slower prometheus clients (default is 3s)
response_timeout = "10s"
```
You can use more complex configuration
to filter and some tags