summaryrefslogtreecommitdiffstats
path: root/health/guides/httpcheck/httpcheck_web_service_bad_content.md
diff options
context:
space:
mode:
Diffstat (limited to 'health/guides/httpcheck/httpcheck_web_service_bad_content.md')
-rw-r--r--health/guides/httpcheck/httpcheck_web_service_bad_content.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/health/guides/httpcheck/httpcheck_web_service_bad_content.md b/health/guides/httpcheck/httpcheck_web_service_bad_content.md
new file mode 100644
index 00000000..0a5961ca
--- /dev/null
+++ b/health/guides/httpcheck/httpcheck_web_service_bad_content.md
@@ -0,0 +1,30 @@
+### Understand the alert
+
+The Netdata Agent monitors your HTTP endpoints. You can specify endpoints that the agent will monitor in Agent's Go module under `go.d/httpcheck.conf`. You can also specify the expected response pattern. This HTTP endpoint will send in the `response_match` option. If the endpoint's response does not match the `response_match` pattern, then the Agent marks the response as unexpected.
+
+The Netdata Agent calculates the average ratio of HTTP responses with unexpected content over the last 5 minutes.
+
+This alert is escalated to warning if the percentage of unexpected content is greater than 10% and then raised to critical if it is greater than 40%.
+
+### Troubleshoot the alert
+
+Check the actual response and the expected response.
+
+1. Try to implement a request with a verbose result:
+
+```
+curl -v <your_http_endpoint>:<port>/<path>
+```
+
+2. Compare it with the expected response.
+
+Check your configuration under `go.d/httpcheck.conf`:
+
+```
+cd /etc/netdata # Replace this path with your Netdata config directory
+sudo ./edit-config go.d/httpcheck.conf
+```
+
+### Useful resources
+
+1. [HTTP endpoint monitoring with Netdata](https://learn.netdata.cloud/docs/agent/collectors/go.d.plugin/modules/httpcheck) \ No newline at end of file