You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
3.2 KiB

  1. # Configuring Checks
  2. In SITE_NAME, a **Check** represents a single service you want to
  3. monitor. For example, when monitoring cron jobs, you would create a separate check for
  4. each cron job to be monitored. SITE_NAME pricing plans are structured primarily
  5. around how many checks you can have in your account. You can create checks
  6. either in SITE_NAME web interface or by calling [API](../api/).
  7. ## Name, Tags, Description
  8. Describe each check using optional name, tags and description fields.
  9. ![Editing name, tags and description](IMG_URL/edit_name.png)
  10. * **Name**: names are optional, but it is a good idea to set them.
  11. Good naming becomes especially important as you add more checks in the
  12. account. Names are displayed in the web interface, in email reports and in the
  13. notifications that SITE_NAME sends out.
  14. * **Tags**: a space-separated list of optional labels. Use tags to organize and group
  15. checks within a project. You can tag checks by environment
  16. (`prod`, `staging`, `dev`, ...) or by role (`www`, `db`, `worker`, ...) or using
  17. any other system.
  18. * **Description**: a free-form text field with any related information for your team
  19. or for your future self: what is being monitored, who set it up,
  20. what to do in case of failures, where to look for additional information.
  21. ## Simple Schedules
  22. SITE_NAME supports two types of schedules: "simple" and "cron". Use "Simple" schedules
  23. for monitoring processes that are expected to run at relatively regular time
  24. intervals: once an hour, once a day, once a week.
  25. ![Editing the period and grace time](IMG_URL/edit_simple_schedule.png)
  26. For simple schedules you configure two time durations, Period and Grace Time.
  27. * **Period**: the expected time between pings
  28. * **Grace Time**: when a check is late, how long to wait before sending an alert.
  29. Use this variable to account for small, expected deviations in job execution times.
  30. ## Cron Schedules
  31. Use "cron" for monitoring processes with more complex schedules, and to ensure
  32. jobs run **at the correct time** (not just at correct time intervals).
  33. ![Editing cron schedule](IMG_URL/edit_cron_schedule.png)
  34. You will need to specify Cron Expression, Server's Time Zone and Grace Time.
  35. * **Cron Expression**: enter the same expression you've used in the crontab.
  36. * **Server's Time Zone**: cron daemon typically uses the local time of the machine it is
  37. running on. If the machine is not using UTC timezone, you need to tell SITE_NAME
  38. what timezone to use.
  39. * **Grace Time**: same as for simple schedules, how long to wait before sending an alert
  40. for a late check.
  41. ## Filtering Rules
  42. ![Setting filtering rules](IMG_URL/filtering_rules.png)
  43. * **Allowed request methods for HTTP requests**: optionally require the HTTP ping
  44. requests to use HTTP POST. Use this if you run into issues of bots hitting the ping
  45. URLs when you send them in email or post them in chat.
  46. * **Subject must contain**: when pinging via [email](../email/), require a particular
  47. keyword in the subject line. SITE_NAME will ignore any email messages with the
  48. keyword missing. This is useful, for example, when backup software sends
  49. emails with "Backup Successful" or "Backup Failed" subject lines after each run,
  50. and you want SITE_NAME to ignore the "Backup Failed" messages.