Browse Source

fix: Fixed several alerts and typo's

tags/0.2.0
parent
commit
a8e837597a
Signed by untrusted user: christophe.vkerchove <christophe.vkerchove@fxinnovation.com> GPG Key ID: 0A0AD982455B0314
3 changed files with 18 additions and 9 deletions
  1. +2
    -1
      CHANGELOG.md
  2. +10
    -2
      README.md
  3. +6
    -6
      main.tf

+ 2
- 1
CHANGELOG.md View File

@@ -1,7 +1,8 @@

0.2.0 / 2020-03-30
0.2.0 / 2020-04-01
==================

* fix: Fixed several alerts and typo's
* fix: Improve alerting messages
* fix: Typo in "critical" on one of the alerts
* tech: Set example to use KinD


+ 10
- 2
README.md View File

@@ -3,6 +3,14 @@
Terraform module that will deploy kube-state-metrics on kubernetes.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

| Name | Version |
|------|---------|
| terraform | >= 0.12 |
| kubernetes | >= 1.10.0 |
| random | >= 2.0.0 |

## Providers

| Name | Version |
@@ -13,7 +21,7 @@ Terraform module that will deploy kube-state-metrics on kubernetes.
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:-----:|
|------|-------------|------|---------|:--------:|
| annotations | Additionnal annotations that will be merged on all resources. | `map` | `{}` | no |
| cluster\_role\_annotations | Additionnal annotations that will be merged for the cluster\_role. | `map` | `{}` | no |
| cluster\_role\_binding\_annotations | Additionnal annotations that will be merged for the cluster\_role\_binding. | `map` | `{}` | no |
@@ -24,7 +32,7 @@ Terraform module that will deploy kube-state-metrics on kubernetes.
| deployment\_annotations | Additionnal annotations that will be merged on the deployment. | `map` | `{}` | no |
| deployment\_labels | Additionnal labels that will be merged on the deployment. | `map` | `{}` | no |
| deployment\_name | Name of the deployment that will be create. | `string` | `"kube-state-metrics"` | no |
| deployment\_service\_account\_name | Only if `rbac_enabled` is false, name of the service account to be used by the container. | `string` | n/a | yes |
| deployment\_service\_account\_name | Only if `rbac_enabled` is false, name of the service account to be used by the container. | `string` | `null` | no |
| enabled | Whether or not to enable this module. | `bool` | `true` | no |
| image\_name | Name of the docker image to use. | `string` | `"quay.io/coreos/kube-state-metrics"` | no |
| image\_pull\_policy | Image pull policy on the main container. | `string` | `"IfNotPresent"` | no |


+ 6
- 6
main.tf View File

@@ -335,7 +335,7 @@ locals {
"annotations" = merge(
{
"summary" = "kube-state-metrics - Persistent Volume {{ $labels.namespace }}-{{ $labels.persistentvolume }} has a phase of Failed."
"description" = "kube-state-metrics:\nPersistent Volume {{ $labels.persistentvolume }} has been in phase Failed for 15m in namespace {{ $labels.namespace }}\nLabels:\n{{ $labels }}"
"description" = "kube-state-metrics:\nPersistent Volume {{ $labels.persistentvolume }} has been in phase Failed for 5m in namespace {{ $labels.namespace }}\nLabels:\n{{ $labels }}"
},
var.prometheus_alert_groups_rules_annotations
)
@@ -437,7 +437,7 @@ locals {
},
{
"alert" = "kube-state-metrics - node condition unkown"
"expr" = "kube_node_status_condition{status=\"unknown\"} > 1"
"expr" = "kube_node_status_condition{status=\"unknown\"} > 0"
"for" = "5m"
"labels" = merge(
{
@@ -455,8 +455,8 @@ locals {
)
},
{
"alert" = "kube-state-metrics - node condition false"
"expr" = "kube_node_status_condition{status=\"false\"} > 1"
"alert" = "kube-state-metrics - node condition true"
"expr" = "kube_node_status_condition{status=\"true\"} > 0"
"for" = "5m"
"labels" = merge(
{
@@ -467,8 +467,8 @@ locals {
)
"annotations" = merge(
{
"summary" = "kube-state-metrics - Condition {{ $labels.condition }} on node {{ $labels.node }} is bad (false)."
"description" = "kube-state-metrics:\nCondition {{ $labels.condition }} on node {{ $labels.node }} has been bad (false) for 5m.\nLabels:\n{{ $labels }}"
"summary" = "kube-state-metrics - Condition {{ $labels.condition }} on node {{ $labels.node }} is failing."
"description" = "kube-state-metrics:\nCondition {{ $labels.condition }} on node {{ $labels.node }} has been failing for 5m.\nLabels:\n{{ $labels }}"
},
var.prometheus_alert_groups_rules_annotations
)


Loading…
Cancel
Save