MON-248 rename k8s to kubernetes
This commit is contained in:
parent
c7285c7a0c
commit
881a0fe78e
@ -73,8 +73,8 @@ The `//` is very important, it's a terraform specific syntax used to separate gi
|
||||
### Monitors summary ###
|
||||
|
||||
- [caas](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/)
|
||||
- [k8s](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/k8s/)
|
||||
- [ingress](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/k8s/ingress/)
|
||||
- [kubernetes](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/kubernetes/)
|
||||
- [ingress](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/kubernetes/ingress/)
|
||||
- [cloud](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/)
|
||||
- [aws](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/aws/)
|
||||
- [alb](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/aws/alb/)
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
# CAAS K8S INGRESS DataDog monitors
|
||||
# CAAS KUBERNETES INGRESS DataDog monitors
|
||||
|
||||
## How to use this module
|
||||
|
||||
```
|
||||
module "datadog-monitors-caas-k8s-ingress" {
|
||||
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//caas/k8s/ingress?ref={revision}"
|
||||
module "datadog-monitors-caas-kubernetes-ingress" {
|
||||
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//caas/kubernetes/ingress?ref={revision}"
|
||||
|
||||
environment = "${var.environment}"
|
||||
message = "${module.datadog-message-alerting.alerting-message}"
|
||||
@ -16,7 +16,7 @@ module "datadog-monitors-caas-k8s-ingress" {
|
||||
|
||||
Creates DataDog monitors with the following checks:
|
||||
|
||||
- Nginx Ingress 5xx errors too high for {{ingress_class.name}} on {{upstream.name}}
|
||||
- Nginx Ingress 5xx errors
|
||||
|
||||
## Inputs
|
||||
|
||||
@ -36,7 +36,6 @@ Creates DataDog monitors with the following checks:
|
||||
| ingress_5xx_timeframe | Monitor timeframe for Ingress 5xx errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
|
||||
| message | Message sent when an alert is triggered | string | - | yes |
|
||||
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |
|
||||
| team | Global Terraform | string | `k8s` | no |
|
||||
|
||||
## Outputs
|
||||
|
||||
@ -74,7 +73,7 @@ datadog:
|
||||
# Adapt the tags to the current convention and verify that the monitor will match
|
||||
tags:
|
||||
- dd_monitoring:enabled
|
||||
- dd_k8s_ingress:enabled
|
||||
- dd_ingress:enabled
|
||||
- dd_ingress_class:nginx
|
||||
- env:prod
|
||||
```
|
||||
@ -1,9 +1,4 @@
|
||||
# Global Terraform
|
||||
variable "team" {
|
||||
type = "string"
|
||||
default = "k8s"
|
||||
}
|
||||
|
||||
variable "environment" {
|
||||
description = "Architecture Environment"
|
||||
type = "string"
|
||||
@ -1,6 +1,6 @@
|
||||
resource "datadog_monitor" "Nginx_ingress_too_many_5xx" {
|
||||
count = "${var.ingress_5xx_enabled ? 1 : 0}"
|
||||
name = "[${var.environment}] [${var.team}] Nginx Ingress 5xx errors too high for {{ingress_class.name}} on {{upstream.name}} {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||
name = "[${var.environment}] Nginx Ingress 5xx errors {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}"
|
||||
message = "${coalesce(var.ingress_5xx_message, var.message)}"
|
||||
|
||||
query = <<EOF
|
||||
Loading…
x
Reference in New Issue
Block a user