Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagerduty for nextcloud set up #7042

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions terraform/pagerduty/aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ resource "aws_secretsmanager_secret_version" "pagerduty_integration_keys" {
hmpps_domain_services_prod_alarms = pagerduty_service_integration.hmpps_domain_services_prod_cloudwatch.integration_key,
hmpps_domain_services_nonprod_alarms = pagerduty_service_integration.hmpps_domain_services_nonprod_cloudwatch.integration_key
delius_core_nonprod_alarms = pagerduty_service_integration.delius_core_nonprod_cloudwatch.integration_key
delius_nextcloud_nonprod_alarms = pagerduty_service_integration.delius_nextcloud_nonprod_cloudwatch.integration_key
delius_nextcloud_prod_alarms = pagerduty_service_integration.delius_nextcloud_prod_cloudwatch.integration_key
})
}

Expand Down
88 changes: 88 additions & 0 deletions terraform/pagerduty/member-services-integrations.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1896,3 +1896,91 @@ resource "pagerduty_slack_connection" "delius_core_nonprod_connection" {
priorities = ["*"]
}
}
resource "pagerduty_service" "delius_nextcloud_nonprod" {
name = "Delius Nextcloud Alarms"
description = "Delius Nextcloud Alarms"
auto_resolve_timeout = 345600
acknowledgement_timeout = "null"
escalation_policy = pagerduty_escalation_policy.member_policy.id
alert_creation = "create_alerts_and_incidents"
}

resource "pagerduty_service_integration" "delius_nextcloud_nonprod_cloudwatch" {
name = data.pagerduty_vendor.cloudwatch.name
service = pagerduty_service.delius_nextcloud_nonprod.id
vendor = data.pagerduty_vendor.cloudwatch.id
}

resource "pagerduty_slack_connection" "delius_nextcloud_nonprod_connection" {
source_id = pagerduty_service.delius_nextcloud_nonprod.id
source_type = "service_reference"
workspace_id = local.slack_workspace_id
channel_id = "C07409ALASY"
notification_type = "responder"
config {
events = [
"incident.triggered",
"incident.acknowledged",
"incident.escalated",
"incident.resolved",
"incident.reassigned",
"incident.annotated",
"incident.unacknowledged",
"incident.delegated",
"incident.priority_updated",
"incident.responder.added",
"incident.responder.replied",
"incident.action_invocation.created",
"incident.action_invocation.terminated",
"incident.action_invocation.updated",
"incident.status_update_published",
"incident.reopened"
]
priorities = ["*"]
}
}

resource "pagerduty_service" "delius_nextcloud_prod" {
name = "Delius Nextcloud prod Alarms"
description = "Delius Nextcloud prod Alarms"
auto_resolve_timeout = 345600
acknowledgement_timeout = "null"
escalation_policy = pagerduty_escalation_policy.member_policy.id
alert_creation = "create_alerts_and_incidents"
}

resource "pagerduty_service_integration" "delius_nextcloud_prod_cloudwatch" {
name = data.pagerduty_vendor.cloudwatch.name
service = pagerduty_service.delius_nextcloud_prod.id
vendor = data.pagerduty_vendor.cloudwatch.id
}

resource "pagerduty_slack_connection" "delius_nextcloud_prod_connection" {
source_id = pagerduty_service.delius_nextcloud_prod.id
source_type = "service_reference"
workspace_id = local.slack_workspace_id
channel_id = "C073H8H5Q0P"
notification_type = "responder"
config {
events = [
"incident.triggered",
"incident.acknowledged",
"incident.escalated",
"incident.resolved",
"incident.reassigned",
"incident.annotated",
"incident.unacknowledged",
"incident.delegated",
"incident.priority_updated",
"incident.responder.added",
"incident.responder.replied",
"incident.action_invocation.created",
"incident.action_invocation.terminated",
"incident.action_invocation.updated",
"incident.status_update_published",
"incident.reopened"
]
priorities = ["*"]
}
}