Skip to content

Commit 21e21be

Browse files
committed
Resolved issues with nginx java and added polyglot on otel
1 parent 090b6eb commit 21e21be

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

modules/eks-monitoring/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ See examples using this Terraform modules in the **Amazon EKS** section of [this
9090
| <a name="input_enable_grafana_operator"></a> [enable\_grafana\_operator](#input\_enable\_grafana\_operator) | Deploys Grafana Operator to EKS Cluster | `bool` | `true` | no |
9191
| <a name="input_enable_istio"></a> [enable\_istio](#input\_enable\_istio) | Enable ISTIO workloads monitoring, alerting and default dashboards | `bool` | `false` | no |
9292
| <a name="input_enable_java"></a> [enable\_java](#input\_enable\_java) | Enable Java workloads monitoring, alerting and default dashboards | `bool` | `false` | no |
93+
| <a name="input_enable_polyglot"></a> [enable\_polyglot](#input\_enable\_polyglot) | Enable monitoring, alerting and default dashboards for .net,Rust and other languages | `bool` | `false` | no |
9394
| <a name="input_enable_kube_state_metrics"></a> [enable\_kube\_state\_metrics](#input\_enable\_kube\_state\_metrics) | Enables or disables Kube State metrics exporter. Disabling this might affect some data in the dashboards | `bool` | `true` | no |
9495
| <a name="input_enable_logs"></a> [enable\_logs](#input\_enable\_logs) | Using AWS For FluentBit to collect cluster and application logs to Amazon CloudWatch | `bool` | `true` | no |
9596
| <a name="input_enable_managed_prometheus"></a> [enable\_managed\_prometheus](#input\_enable\_managed\_prometheus) | Creates a new Amazon Managed Service for Prometheus Workspace | `bool` | `true` | no |

modules/eks-monitoring/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ module "helm_addon" {
188188
name = "enableIstio"
189189
value = var.enable_istio
190190
},
191+
{
192+
name = "enablePolyglot"
193+
value = var.enable_polyglot
194+
},
191195
{
192196
name = "istioScrapeSampleLimit"
193197
value = try(var.istio_config.scrape_sample_limit, local.istio_pattern_config.scrape_sample_limit)
@@ -237,20 +241,26 @@ module "java_monitoring" {
237241
count = var.enable_java ? 1 : 0
238242

239243
pattern_config = coalesce(var.java_config, local.java_pattern_config)
244+
245+
depends_on = [resource.helm_release.fluxcd]
240246
}
241247

242248
module "nginx_monitoring" {
243249
source = "./patterns/nginx"
244250
count = var.enable_nginx ? 1 : 0
245251

246252
pattern_config = local.nginx_pattern_config
253+
254+
depends_on = [resource.helm_release.fluxcd]
247255
}
248256

249257
module "istio_monitoring" {
250258
source = "./patterns/istio"
251259
count = var.enable_istio ? 1 : 0
252260

253261
pattern_config = coalesce(var.istio_config, local.istio_pattern_config)
262+
263+
depends_on = [resource.helm_release.fluxcd]
254264
}
255265

256266
module "fluentbit_logs" {

modules/eks-monitoring/otel-config/templates/opentelemetrycollector.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,12 @@ spec:
13861386
action: drop
13871387
{{ end }}
13881388
1389+
{{ if .Values.enablePolyglot }}
1390+
- job_name: 'kubernetes-polyglot'
1391+
kubernetes_sd_configs:
1392+
- role: pod
1393+
{{ end }}
1394+
13891395
{{ if .Values.enableNginx }}
13901396
- job_name: 'kubernetes-nginx'
13911397
sample_limit: {{ .Values.nginxScrapeSampleLimit }}

modules/eks-monitoring/otel-config/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ adotServiceTelemetryLoglevel: ${adot_service_telemetry_loglevel}
3636

3737
enableAdotcollectorMetrics: ${enable_adotcollector_metrics}
3838

39+
enablePolyglot: ${enable_polyglot}
40+
3941
serviceAccount: ${service_account}
4042
namespace: ${namespace}

modules/eks-monitoring/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,3 +565,9 @@ variable "kubeproxy_monitoring_config" {
565565
# defaults are pre-computed in locals.tf, provide a full definition to override
566566
default = null
567567
}
568+
569+
variable "enable_polyglot" {
570+
description = "Enable monitoring for .net,Rust and other languages"
571+
type = bool
572+
default = false
573+
}

0 commit comments

Comments
 (0)