@cryptotaxi247 / netdata-1 / commits / 2a7e8c50b

Change units in httpcheck, update docs

Chris committed Feb 26, 2018 at 19:41 UTC 2a7e8c50bb9f13d36db57f1ef41293f32db74dae
2 files changed +8 -8
python.d/README.md
+7 -7
@@ -864,12 +864,12 @@ Following charts are drawn per job:
864 it will be at least 0.1 ms, even if the measured time is lower than 0.1 ms.
865 If the connection failed, the value is missing.
866
867 -2. **Error** int
868 - * Connection successful: value = 1 otherwise 0
869 - * Unexpected content: No Regex match found in the response (value = 1, otherwise 0)
870 - * Unexpected status code: Do we get 500 errors? (value = 1, otherwise 0)
871 - * Connection failed: port not listening or blocked (value = 1, otherwise 0)
872 - * Connection timed out: host or port unreachable (value = 1, otherwise 0)
867 +2. **Error** boolean
868 + * Connection successful
869 + * Unexpected content: No Regex match found in the response
870 + * Unexpected status code: Do we get 500 errors?
871 + * Connection failed: port not listening or blocked
872 + * Connection timed out: host or port unreachable
873
874 ### configuration
875
@@ -888,7 +888,7 @@ server:
888
889 ### notes
890
891 - * The error code chart is intended for health check or for access via API.
891 + * The status chart is primarily intended for alarms, badges or for access via API.
892 * A system/service/firewall might block netdata's access if a portscan or
893 similar is detected.
894 * This plugin is meant for simple use cases. Currently, the accuracy of the
python.d/httpcheck.chart.py
+1 -1
@@ -43,7 +43,7 @@ CHARTS = {
43 [HTTP_RESPONSE_LENGTH, 'length', 'absolute']
44 ]},
45 'status': {
46 - 'options': [None, 'HTTP status', 'flag', 'status', 'httpcheck.status', 'line'],
46 + 'options': [None, 'HTTP status', 'boolean', 'status', 'httpcheck.status', 'line'],
47 'lines': [
48 [HTTP_SUCCESS, 'success', 'absolute'],
49 [HTTP_BAD_CONTENT, 'bad content', 'absolute'],