Skip to content

Commit

Permalink
grafana updates
Browse files Browse the repository at this point in the history
  • Loading branch information
candonov committed Oct 13, 2023
1 parent 10464a7 commit 23389a5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 7 deletions.
50 changes: 50 additions & 0 deletions bootstrap/terraform/kube-prometheus-stack-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
prometheus:
service:
type: "LoadBalancer"
additionalPodMonitors:
- name: "crossplane"
namespaceSelector:
matchNames:
- "crossplane-system"
podMetricsEndpoints:
- port: "metrics"
selector: {}
grafana:
service:
type: "LoadBalancer"
resources:
requests:
cpu : "100m"
memory : "1Gi"
limits:
cpu: "1"
memory: "2Gi"
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://kube-prometheus-stack-prometheus.kube-prometheus-stack:9090/
isDefault: true
uid: prometheusdatasource
deleteDatasources:
- name: Prometheus
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'default'
orgId: 1
type: file
disableDeletion: false
editable: true
options:
path: /var/lib/grafana/dashboards/default
dashboards:
default:
crossplane:
gnetId: 19747
revision: 4
datasource: prometheusdatasource
8 changes: 1 addition & 7 deletions bootstrap/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,7 @@ module "eks_blueprints_addons" {
enable_metrics_server = true
enable_kube_prometheus_stack = true
kube_prometheus_stack = {
values = [yamlencode({
prometheus = {
service = {
type = "LoadBalancer"
}
}
})]
values = [file("${path.module}/kube-prometheus-stack-values.yaml")]
}

depends_on = [module.eks.eks_managed_node_groups]
Expand Down

0 comments on commit 23389a5

Please sign in to comment.