Update metric data retrieval configurations with additional details and proxy server setting.

This commit is contained in:
Jeroen De Meerleer 2024-06-03 19:48:39 +02:00
parent 48f121c759
commit aa1ee0cc11
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -9,7 +9,7 @@ $config = [
'help' => 'Help text for metric', 'help' => 'Help text for metric',
'http' => [ 'http' => [
'url' => 'http://example.com', // The url to get collected for the metric 'url' => 'http://example.com', // The url to get collected for the metric
'data' => 'responsebody' // The body is used as output 'data' => 'responsebody', // The body is used as output
], ],
'jsonelem' => '0.metric', 'jsonelem' => '0.metric',
], ],
@ -17,14 +17,15 @@ $config = [
'help' => 'Help text for metric', 'help' => 'Help text for metric',
'http' => [ 'http' => [
'url' => 'http://example.com', // The url to get collected for the metric 'url' => 'http://example.com', // The url to get collected for the metric
'data' => 'hasresponse' // If an error occured during request this will return 0, otherwise 1 'data' => 'hasresponse', // If an error occured during request this will return 0, otherwise 1
], ],
], ],
'app_demo_metric4' => [ 'app_demo_metric4' => [
'help' => 'Help text for metric', 'help' => 'Help text for metric',
'http' => [ 'http' => [
'url' => 'http://example.com', // The url to get collected for the metric 'url' => 'http://example.com', // The url to get collected for the metric
'data' => 'responsetime' // This will return the transfer time 'data' => 'responsetime', // This will return the transfer time
'proxy' => 'http://192.168.1.252:8080', // The proxy server the request needs to use
], ],
], ],
]; ];