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.

57 lines
3.7 KiB

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