From 0533eb0ac882a93388115098ef5e3c3a159d44c1 Mon Sep 17 00:00:00 2001 From: Andreas Grimm Date: Mon, 25 Feb 2019 13:23:27 +0100 Subject: [PATCH] Typos --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index be8f0be..4460e3a 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ $ DISK_USAGE_MOUNTPOINT=/dev/vdb ./metrics.sh -m disk_usage ### Configuration files -Maintaing all these options can become a cumbersome job, but metrics.sh provides functionality for creating and reading configuration files. +Maintaining all these options can become a cumbersome job, but metrics.sh provides functionality for creating and reading configuration files. ```sh $ ./metrics.sh -C > metrics.ini # write configuration to metrics.ini @@ -152,7 +152,7 @@ defaults () {} # setting default variables start () {} # called at the beginning collect () {} # collect the actual metric stop () {} # called before exiting -docs () {} # used for priting docs and creating output for configuration +docs () {} # used for printing docs and creating output for configuration ``` Metrics run within an isolated scope. It's generally safe to create variables and helper functions within metrics. @@ -215,7 +215,7 @@ defaults () {} # setting default variables start () {} # called at the beginning report () {} # report the actual metric stop () {} # called before exiting -docs () {} # used for priting docs and creating output for configuration +docs () {} # used for printing docs and creating output for configuration ``` Below is an example script for sending metrics as JSON data to an API endpoint. Assuming this script is located at `./reporters/custom/json_api.sh`, it can be invoked by calling `./metrics.sh -r json_api`. @@ -231,7 +231,7 @@ defaults () { } # Prepare the reporter. Create helper functions to be used during collection -# if needed. Returning 1 will result in an error and exection will be stopped. +# if needed. Returning 1 will result in an error and execution will be stopped. start () { if [ -z $JSON_API_ENDPOINT ]; then echo "Error: json_api requires \$JSON_API_ENDPOINT to be specified"