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.

124 lines
4.0 KiB

  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 install_url %}
  17. <div class="text-center">
  18. <div class="text-center">
  19. <a href="{{ install_url|safe }}" class="btn btn-lg btn-default">
  20. <img class="ai-icon" src="{% static 'img/integrations/pd.png' %}" alt="PagerDuty" />
  21. Connect PagerDuty
  22. </a>
  23. </div>
  24. </div>
  25. {% endif %}
  26. {% else %}
  27. <p>
  28. {{ site_name }} is a <strong>free</strong> and
  29. <a href="https://github.com/healthchecks/healthchecks">open source</a>
  30. service for monitoring your cron jobs, background processes and
  31. scheduled tasks. Before adding PagerDuty integration, please log into
  32. {{ site_name }}:</p>
  33. <div class="text-center">
  34. <a href="{% url 'hc-login' %}"
  35. class="btn btn-primary btn-lg">Sign In</a>
  36. </div>
  37. {% endif %}
  38. </div>
  39. <h2>Setup Guide</h2>
  40. {% if not connect_url %}
  41. <div class="row ai-step">
  42. <div class="col-sm-6">
  43. <span class="step-no"></span>
  44. <p>
  45. {% if request.user.is_authenticated %}
  46. Go
  47. {% else %}
  48. After logging in, go
  49. {% endif %}
  50. to the <strong>Integrations</strong> page,
  51. and click on <strong>Add Integration</strong> next to the
  52. PagerDuty integration.
  53. </p>
  54. </div>
  55. <div class="col-sm-6">
  56. <img
  57. class="ai-guide-screenshot"
  58. alt="Screenshot"
  59. src="{% static 'img/integrations/setup_pd_simple_0.png' %}">
  60. </div>
  61. </div>
  62. {% endif %}
  63. <div class="row ai-step">
  64. <div class="col-sm-6">
  65. <span class="step-no"></span>
  66. <p>
  67. Click on "Connect PagerDuty", and you will be
  68. asked to log into your PagerDuty account.
  69. </p>
  70. </div>
  71. <div class="col-sm-6">
  72. <img
  73. class="ai-guide-screenshot"
  74. alt="Screenshot"
  75. src="{% static 'img/integrations/setup_pd_simple_1.png' %}">
  76. </div>
  77. </div>
  78. <div class="row ai-step">
  79. <div class="col-sm-6">
  80. <span class="step-no"></span>
  81. <p>
  82. Next, PagerDuty will let set the services
  83. for this integration.
  84. </p>
  85. </div>
  86. <div class="col-sm-6">
  87. <img
  88. class="ai-guide-screenshot"
  89. alt="Screenshot"
  90. src="{% static 'img/integrations/setup_pd_simple_2.png' %}">
  91. </div>
  92. </div>
  93. <div class="row ai-step">
  94. <div class="col-sm-6">
  95. <span class="step-no"></span>
  96. <p>
  97. And that is all! You will then be redirected back to
  98. "Integrations" page on {{ site_name }} and see
  99. the new integration!
  100. </p>
  101. </div>
  102. <div class="col-sm-6">
  103. <img
  104. class="ai-guide-screenshot"
  105. alt="Screenshot"
  106. src="{% static 'img/integrations/setup_pd_simple_3.png' %}">
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. {% endblock %}