Skip to content
Permalink
Browse files

feat: add slack webhook callback to netdata

  • Loading branch information...
etienne-napoleone committed May 20, 2019
1 parent 1c376ed commit 903690cddcec5d133e12a9e58c1715efb314ba5d
@@ -40,6 +40,9 @@ module "kubernetes" {

module "netdata" {
source = "../modules/providers/helm/netdata"

notifications_url = "${var.notifications_url}"
notifications_recipient = "netdata-devnet"
}

module "tomoscan" {
@@ -1 +1,5 @@
variable "do_token" {}

variable "notifications_url" {
default = ""
}
@@ -21,4 +21,14 @@ resource "helm_release" "netdata" {
name = "master.alarms.volumesize"
value = "1Gi"
}

set {
name = "notifications.slackurl"
value = "${var.notifications_url}"
}

set {
name = "notifications.slackrecipient"
value = "${var.notifications_url}"
}
}
@@ -7,3 +7,13 @@ variable "storage_class" {
default = "do-block-storage"
description = "Kubernetes storage class used for netdata storage"
}

variable "notifications_url" {
default = ""
description = "Slack webhook url for sending health notifications"
}

variable "notifications_recipient" {
default = ""
description = "Slack recipient channel for sending health notifications"
}

0 comments on commit 903690c

Please sign in to comment.
You can’t perform that action at this time.