Add timeout options to httpSink

This commit is contained in:
Thomas Roehl
2022-02-08 18:06:07 +01:00
parent fec3c5981d
commit 7f78a5baf2
2 changed files with 49 additions and 15 deletions

View File

@@ -13,7 +13,10 @@ The `http` sink uses POST requests to a HTTP server to submit the metrics in the
"host": "dbhost.example.com",
"port": "4222",
"jwt" : "0x0000q231",
"ssl" : false
"ssl" : false,
"timeout": "5s",
"max_idle_connections" : 10,
"idle_connection_timeout" : "5s"
}
}
```
@@ -24,4 +27,7 @@ The `http` sink uses POST requests to a HTTP server to submit the metrics in the
- `host`: Hostname of the InfluxDB database server
- `port`: Portnumber (as string) of the InfluxDB database server
- `jwt`: JSON web tokens for authentification
- `ssl`: Activate SSL encryption
- `ssl`: Activate SSL encryption
- `timeout`: General timeout for the HTTP client (default '5s')
- `max_idle_connections`: Maximally idle connections (default 10)
- `idle_connection_timeout`: Timeout for idle connections (default '5s')