From ba8158f35e13670b5014ea315a86eb9d545d4bfe Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Mon, 3 Jun 2024 14:01:26 +0200 Subject: [PATCH] Update metric data retrieval configurations with additional details and proxy server setting. --- config.example.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.example.php b/config.example.php index 0dafe17..4c4cc0f 100644 --- a/config.example.php +++ b/config.example.php @@ -9,7 +9,7 @@ $config = [ 'help' => 'Help text for metric', 'http' => [ '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', ], @@ -17,14 +17,15 @@ $config = [ 'help' => 'Help text for metric', 'http' => [ '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' => [ 'help' => 'Help text for metric', 'http' => [ '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 ], ], ]; \ No newline at end of file