The Keyword monitor checks if specific text is present (or absent) in a web page's response body. It's essentially an HTTP monitor with a mandatory keyword check.
๐ฏ Was Es Machtโ
- Fetches a web page via HTTP
- Searches the response body for a specific keyword or phrase
- Alerts if the keyword is missing (or present, if you want to detect errors)
โ๏ธ Konfigurationโ
Same as the HTTP monitor, plus:
| Einstellung | Beschreibung |
|---|
| Keyword | The text to search for in the response |
| Keyword Should Exist | โ
= must be present, โ = must be absent |
๐ Anwendungsbeispieleโ
Example 1: Verify page content is correctโ
| Einstellung | Wert |
|---|
| URL | https://example.com |
| Keyword | Welcome to our website |
| Should Exist | โ
Yes |
Example 2: Detect error pagesโ
| Einstellung | Wert |
|---|
| URL | https://example.com |
| Keyword | 500 Internal Server Error |
| Should Exist | โ No |
Example 3: Check API responseโ
| Einstellung | Wert |
|---|
| URL | https://api.example.com/health |
| Keyword | "healthy":true |
| Should Exist | โ
Yes |
๐ก Tippsโ
- Keyword search is case-sensitive
- The keyword is searched in the raw HTML/response body, not the rendered page
- For JSON APIs, search for a key-value pair like
"status":"ok" to verify the response structure, not just the status code