-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2908d1a
commit 8837c4c
Showing
4 changed files
with
4 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1 @@ | ||
resource "chronosphere_notification_policy" "np" { | ||
team_id = chronosphere_team.t.id | ||
name = "team NP" | ||
|
||
route { | ||
severity = "warn" | ||
notifiers = [chronosphere_email_alert_notifier.email.id] | ||
} | ||
} | ||
|
||
resource "chronosphere_collection" "infra" { | ||
name = "Infrastructure Collection" | ||
team_id = chronosphere_team.t.id | ||
description = "Collection of resources related to infrastructure services." | ||
|
||
notification_policy_id = chronosphere_notification_policy.np.id | ||
} | ||
../collection-notification-policy/main.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
resource "chronosphere_email_alert_notifier" "email" { | ||
name = "Email Blackhole" | ||
to = "[email protected]" | ||
} | ||
../notifiers/email.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
resource "chronosphere_team" "t" { | ||
name = "Team" | ||
description = "Optional Team Description" | ||
} | ||
../collection/teams.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1 @@ | ||
terraform { | ||
required_providers { | ||
chronosphere = { | ||
# Version used by "make install" to simplify development. | ||
version = "0.0.1-dev" | ||
source = "local/chronosphereio/chronosphere" | ||
} | ||
} | ||
} | ||
../version.tf |