|
1 | 1 | rule_type = "composite" |
2 | 2 | display_name = "cluster_entities_relationship" |
3 | | -description = "Validate cluster entities relationships" |
| 3 | +description = """ |
| 4 | +Validate cluster entities relation of number of containers, their endpoints (ports), and IP addresses. |
| 5 | +""" |
| 6 | + |
| 7 | +reviewed = "Partially, by a human" |
| 8 | +last_review_by = "Piotr" |
| 9 | +last_review_on = "30-01-2026" |
4 | 10 |
|
5 | 11 | [composite_config] |
6 | 12 |
|
@@ -28,15 +34,22 @@ numerator = "endpoints" |
28 | 34 | denominator = "containers" |
29 | 35 | min_ratio = 0.5 |
30 | 36 | status = "yellow" |
31 | | -message = "Entities: {containers} containers, {endpoints} endpoints, {ips} IPs - Low endpoint ratio" |
| 37 | +message = """ |
| 38 | +Entities: {containers} containers, {endpoints} endpoints, {ips} IPs - Low endpoint to container ratio. |
| 39 | +This roughly means that more than half of the containers have 0 endpoints (ports). |
| 40 | +This is unusual, however possible. |
| 41 | +""" |
32 | 42 |
|
33 | 43 | [[composite_config.checks]] |
34 | 44 | check_type = "ratio" |
35 | 45 | numerator = "ips" |
36 | 46 | denominator = "endpoints" |
37 | 47 | min_ratio = 0.5 |
38 | 48 | status = "yellow" |
39 | | -message = "Entities: {containers} containers, {endpoints} endpoints, {ips} IPs - Low IP ratio" |
| 49 | +message = """ |
| 50 | +Entities: {containers} containers, {endpoints} endpoints, {ips} IPs - Low IP to endpoints ratio. |
| 51 | +We expect that there should be more unique IP addresses assigned to this number of containers and endpoints. |
| 52 | +""" |
40 | 53 |
|
41 | 54 | [messages] |
42 | 55 | green = "Entities: {containers} containers, {endpoints} endpoints, {ips} IPs (healthy ratios)" |
|
0 commit comments