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 ###
|
### Monitors summary ###
|
||||||
|
|
||||||
- [caas](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/)
|
- [caas](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/)
|
||||||
- [k8s](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/k8s/)
|
- [kubernetes](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/kubernetes/)
|
||||||
- [ingress](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/k8s/ingress/)
|
- [ingress](https://bitbucket.org/morea/terraform.feature.datadog/src/master/caas/kubernetes/ingress/)
|
||||||
- [cloud](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/)
|
- [cloud](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/)
|
||||||
- [aws](https://bitbucket.org/morea/terraform.feature.datadog/src/master/cloud/aws/)
|
- [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/)
|
- [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
|
## How to use this module
|
||||||
|
|
||||||
```
|
```
|
||||||
module "datadog-monitors-caas-k8s-ingress" {
|
module "datadog-monitors-caas-kubernetes-ingress" {
|
||||||
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//caas/k8s/ingress?ref={revision}"
|
source = "git::ssh://git@bitbucket.org/morea/terraform.feature.datadog.git//caas/kubernetes/ingress?ref={revision}"
|
||||||
|
|
||||||
environment = "${var.environment}"
|
environment = "${var.environment}"
|
||||||
message = "${module.datadog-message-alerting.alerting-message}"
|
message = "${module.datadog-message-alerting.alerting-message}"
|
||||||
@ -16,7 +16,7 @@ module "datadog-monitors-caas-k8s-ingress" {
|
|||||||
|
|
||||||
Creates DataDog monitors with the following checks:
|
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
|
## 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 |
|
| 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 |
|
| message | Message sent when an alert is triggered | string | - | yes |
|
||||||
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |
|
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |
|
||||||
| team | Global Terraform | string | `k8s` | no |
|
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
@ -74,7 +73,7 @@ datadog:
|
|||||||
# Adapt the tags to the current convention and verify that the monitor will match
|
# Adapt the tags to the current convention and verify that the monitor will match
|
||||||
tags:
|
tags:
|
||||||
- dd_monitoring:enabled
|
- dd_monitoring:enabled
|
||||||
- dd_k8s_ingress:enabled
|
- dd_ingress:enabled
|
||||||
- dd_ingress_class:nginx
|
- dd_ingress_class:nginx
|
||||||
- env:prod
|
- env:prod
|
||||||
```
|
```
|
||||||
@ -1,9 +1,4 @@
|
|||||||
# Global Terraform
|
# Global Terraform
|
||||||
variable "team" {
|
|
||||||
type = "string"
|
|
||||||
default = "k8s"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "environment" {
|
variable "environment" {
|
||||||
description = "Architecture Environment"
|
description = "Architecture Environment"
|
||||||
type = "string"
|
type = "string"
|
||||||
@ -1,6 +1,6 @@
|
|||||||
resource "datadog_monitor" "Nginx_ingress_too_many_5xx" {
|
resource "datadog_monitor" "Nginx_ingress_too_many_5xx" {
|
||||||
count = "${var.ingress_5xx_enabled ? 1 : 0}"
|
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)}"
|
message = "${coalesce(var.ingress_5xx_message, var.message)}"
|
||||||
|
|
||||||
query = <<EOF
|
query = <<EOF
|
||||||
Loading…
x
Reference in New Issue
Block a user