Skip to content

Commit

Permalink
update and debug victoria metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
kvvit committed Dec 27, 2024
1 parent 44d5707 commit f640096
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/k8s-addons/eks-prometheus-operator-crds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ locals {
}

data "http" "kube_prometheus_stack_operator_crds" {
for_each = (local.victoria_metrics_k8s_stack.enabled || local.kube_prometheus_stack.enabled) ? toset(local.kube_prometheus_stack_operator_crds) : []
for_each = (local.victoria_metrics_k8s_stack.enabled || local.kube_prometheus_stack.enabled || local.ingress_nginx.enabled) ? toset(local.kube_prometheus_stack_operator_crds) : []
url = each.key
}

resource "kubectl_manifest" "kube_prometheus_stack_operator_crds" {
for_each = (local.victoria_metrics_k8s_stack.enabled || local.kube_prometheus_stack.enabled) ? { for k, v in data.http.kube_prometheus_stack_operator_crds : yamldecode(v.body).metadata.name => v.body } : {}
for_each = (local.victoria_metrics_k8s_stack.enabled || local.kube_prometheus_stack.enabled || local.ingress_nginx.enabled) ? { for k, v in data.http.kube_prometheus_stack_operator_crds : yamldecode(v.body).metadata.name => v.body } : {}
yaml_body = each.value
server_side_apply = true
}
2 changes: 1 addition & 1 deletion terraform/modules/k8s-addons/eks-storageclass.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "kubernetes_storage_class" "advanced" {
allow_volume_expansion = true
volume_binding_mode = "WaitForFirstConsumer"
parameters = {
type = "gp2"
type = "gp3"
fsType = "ext4"
encrypted = "true" # It is set to true for cases when global EBS encryption is disabled.
}
Expand Down
17 changes: 10 additions & 7 deletions terraform/modules/k8s-addons/eks-victoria-metrics-k8s-stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ vmagent:
operator: In
values:
- on-demand
vmalert:
spec:
extraArgs:
notifier.blackhole: "true"
kubeScheduler:
enabled: false
kubeControllerManager:
Expand All @@ -101,6 +107,9 @@ VALUES
# Grafana settings
grafana:
enabled: true
sidecar:
datasources:
enabled: "false"
adminPassword: "${local.victoria_metrics_k8s_stack_grafana_password}"
serviceAccount:
annotations:
Expand All @@ -124,13 +133,7 @@ grafana:
type: cloudwatch
jsonData:
authType: credentials
defaultRegion: "${local.region}"
- name: Loki
type: loki
url: http://loki-stack.loki:3100
jsonData:
maxLines: 1000
dashboardProviders:
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
Expand Down
6 changes: 3 additions & 3 deletions terraform/modules/k8s-addons/helm-releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ releases:
chart_version: 1.84.0
namespace: kiali
- id: kube-prometheus-stack
enabled: true
enabled: false
chart: kube-prometheus-stack
repository: https://prometheus-community.github.io/helm-charts
chart_version: 67.3.1
Expand All @@ -90,8 +90,8 @@ releases:
chart_version: 1.2.0
namespace: reloader
- id: victoria-metrics-k8s-stack
enabled: false
enabled: true
chart: victoria-metrics-k8s-stack
repository: https://victoriametrics.github.io/helm-charts
chart_version: 0.24.1
chart_version: 0.31.3
namespace: monitoring

0 comments on commit f640096

Please sign in to comment.