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.

126 lines
4.1 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}PagerDuty Integration for {{ site_name }}{% endblock %}
  4. {% block description %}
  5. <meta name="description" content="Use {{ site_name }} with PagerDuty: configure {{ site_name }} to create a PagerDuty incident when a check goes down, and resolve it when a check goes back up.">
  6. {% endblock %}
  7. {% block content %}
  8. <div class="row">
  9. <div class="col-sm-12">
  10. <h1>PagerDuty</h1>
  11. <div class="jumbotron">
  12. {% if request.user.is_authenticated %}
  13. <p>If your team uses <a href="https://www.pagerduty.com">PagerDuty</a>,
  14. you can set up {{ site_name }} to create a PagerDuty incident when
  15. a check goes down, and resolve it when a check goes back up.</p>
  16. {% if connect_url %}
  17. <div class="text-center">
  18. <div class="text-center">
  19. <a href="{{ connect_url|safe }}">
  20. <img
  21. alt="Alert with PagerDuty"
  22. height="55" width="299"
  23. src="{% static 'img/integrations/pd_connect_button.png' %}" />
  24. </a>
  25. </div>
  26. </div>
  27. {% endif %}
  28. {% else %}
  29. <p>
  30. {{ site_name }} is a <strong>free</strong> and
  31. <a href="https://github.com/healthchecks/healthchecks">open source</a>
  32. service for monitoring your cron jobs, background processes and
  33. scheduled tasks. Before adding PagerDuty integration, please log into
  34. {{ site_name }}:</p>
  35. <div class="text-center">
  36. <a href="{% url 'hc-login' %}"
  37. class="btn btn-primary btn-lg">Sign In</a>
  38. </div>
  39. {% endif %}
  40. </div>
  41. <h2>Setup Guide</h2>
  42. {% if not connect_url %}
  43. <div class="row ai-step">
  44. <div class="col-sm-6">
  45. <span class="step-no"></span>
  46. <p>
  47. {% if request.user.is_authenticated %}
  48. Go
  49. {% else %}
  50. After logging in, go
  51. {% endif %}
  52. to the <strong>Integrations</strong> page,
  53. and click on <strong>Add Integration</strong> next to the
  54. PagerDuty integration.
  55. </p>
  56. </div>
  57. <div class="col-sm-6">
  58. <img
  59. class="ai-guide-screenshot"
  60. alt="Screenshot"
  61. src="{% static 'img/integrations/setup_pdc_0.png' %}">
  62. </div>
  63. </div>
  64. {% endif %}
  65. <div class="row ai-step">
  66. <div class="col-sm-6">
  67. <span class="step-no"></span>
  68. <p>
  69. Click on "Alert with PagerDuty", and you will be
  70. asked to log into your PagerDuty account.
  71. </p>
  72. </div>
  73. <div class="col-sm-6">
  74. <img
  75. class="ai-guide-screenshot"
  76. alt="Screenshot"
  77. src="{% static 'img/integrations/setup_pdc_1.png' %}">
  78. </div>
  79. </div>
  80. <div class="row ai-step">
  81. <div class="col-sm-6">
  82. <span class="step-no"></span>
  83. <p>
  84. Next, PagerDuty will let set the name and escalation policy
  85. for this integration.
  86. </p>
  87. </div>
  88. <div class="col-sm-6">
  89. <img
  90. class="ai-guide-screenshot"
  91. alt="Screenshot"
  92. src="{% static 'img/integrations/setup_pdc_2.png' %}">
  93. </div>
  94. </div>
  95. <div class="row ai-step">
  96. <div class="col-sm-6">
  97. <span class="step-no"></span>
  98. <p>
  99. And that is all! You will then be redirected back to
  100. "Integrations" page on {{ site_name }} and see
  101. the new integration!
  102. </p>
  103. </div>
  104. <div class="col-sm-6">
  105. <img
  106. class="ai-guide-screenshot"
  107. alt="Screenshot"
  108. src="{% static 'img/integrations/setup_pdc_3.png' %}">
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. {% endblock %}