Skip to content

Commit aef385f

Browse files
committed
update values
1 parent 499d100 commit aef385f

File tree

9 files changed

+151
-412
lines changed

9 files changed

+151
-412
lines changed
Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +0,0 @@
1-
# Values for Alloy
2-
persistence:
3-
enabled: true
4-
size: 10Gi
5-
resources:
6-
requests:
7-
cpu: 100m
8-
memory: 128Mi
9-
limits:
10-
cpu: 200m
11-
memory: 256Mi
12-
config:
13-
auth_enabled: false
14-
server:
15-
http_listen_port: 3200
16-
storage:
17-
backend: filesystem
18-
filesystem:
19-
dir: /data/alloy
20-
21-
fullnameOverride: alloy
22-
23-
alloy:
24-
configMap:
25-
content: |-
26-
// Write your Alloy config here:
27-
logging {
28-
level = "info"
29-
format = "logfmt"
30-
}
31-
loki.write "alloy" {
32-
endpoint {
33-
url = "http://loki.monitoring.svc:3100/loki/api/v1/push"
34-
}
35-
}
36-
// discovery.kubernetes allows you to find scrape targets from Kubernetes resources.
37-
// It watches cluster state and ensures targets are continually synced with what is currently running in your cluster.
38-
discovery.kubernetes "pod" {
39-
role = "pod"
40-
}
41-
42-
// discovery.relabel rewrites the label set of the input targets by applying one or more relabeling rules.
43-
// If no rules are defined, then the input targets are exported as-is.
44-
discovery.relabel "pod_logs" {
45-
targets = discovery.kubernetes.pod.targets
46-
47-
// Label creation - "namespace" field from "__meta_kubernetes_namespace"
48-
rule {
49-
source_labels = ["__meta_kubernetes_namespace"]
50-
action = "replace"
51-
target_label = "namespace"
52-
}
53-
54-
// Label creation - "pod" field from "__meta_kubernetes_pod_name"
55-
rule {
56-
source_labels = ["__meta_kubernetes_pod_name"]
57-
action = "replace"
58-
target_label = "pod"
59-
}
60-
61-
// Label creation - "container" field from "__meta_kubernetes_pod_container_name"
62-
rule {
63-
source_labels = ["__meta_kubernetes_pod_container_name"]
64-
action = "replace"
65-
target_label = "container"
66-
}
67-
68-
// Label creation - "app" field from "__meta_kubernetes_pod_label_app_kubernetes_io_name"
69-
rule {
70-
source_labels = ["__meta_kubernetes_pod_label_app_kubernetes_io_name"]
71-
action = "replace"
72-
target_label = "app"
73-
}
74-
75-
// Label creation - "job" field from "__meta_kubernetes_namespace" and "__meta_kubernetes_pod_container_name"
76-
// Concatenate values __meta_kubernetes_namespace/__meta_kubernetes_pod_container_name
77-
rule {
78-
source_labels = ["__meta_kubernetes_namespace", "__meta_kubernetes_pod_container_name"]
79-
action = "replace"
80-
target_label = "job"
81-
separator = "/"
82-
replacement = "$1"
83-
}
84-
85-
// Label creation - "container" field from "__meta_kubernetes_pod_uid" and "__meta_kubernetes_pod_container_name"
86-
// Concatenate values __meta_kubernetes_pod_uid/__meta_kubernetes_pod_container_name.log
87-
rule {
88-
source_labels = ["__meta_kubernetes_pod_uid", "__meta_kubernetes_pod_container_name"]
89-
action = "replace"
90-
target_label = "__path__"
91-
separator = "/"
92-
replacement = "/var/log/pods/*$1/*.log"
93-
}
94-
95-
// Label creation - "container_runtime" field from "__meta_kubernetes_pod_container_id"
96-
rule {
97-
source_labels = ["__meta_kubernetes_pod_container_id"]
98-
action = "replace"
99-
target_label = "container_runtime"
100-
regex = "^(\\S+):\\/\\/.+$"
101-
replacement = "$1"
102-
}
103-
}
104-
105-
// loki.source.kubernetes tails logs from Kubernetes containers using the Kubernetes API.
106-
loki.source.kubernetes "pod_logs" {
107-
targets = discovery.relabel.pod_logs.output
108-
forward_to = [loki.process.pod_logs.receiver]
109-
}
110-
// loki.process receives log entries from other Loki components, applies one or more processing stages,
111-
// and forwards the results to the list of receivers in the component's arguments.
112-
loki.process "pod_logs" {
113-
stage.static_labels {
114-
values = {
115-
cluster = "envoy-gateway",
116-
}
117-
}
118-
119-
forward_to = [loki.write.alloy.receiver]
120-
}
Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +0,0 @@
1-
# Values for Fluent-bit
2-
fullnameOverride: fluent-bit
3-
image:
4-
repository: fluent/fluent-bit
5-
6-
testFramework:
7-
enabled: false
8-
9-
podAnnotations:
10-
prometheus.io/scrape: "true"
11-
prometheus.io/port: "2020"
12-
prometheus.io/path: /api/v1/metrics/prometheus
13-
fluentbit.io/exclude: "true"
14-
15-
config:
16-
service: |
17-
[SERVICE]
18-
Daemon Off
19-
Flush ${FLUSH}
20-
Log_Level ${LOG_LEVEL}
21-
Parsers_File parsers.conf
22-
Parsers_File custom_parsers.conf
23-
HTTP_Server On
24-
HTTP_Listen 0.0.0.0
25-
HTTP_Port ${METRICS_PORT}
26-
Health_Check On
27-
28-
inputs: |
29-
[INPUT]
30-
Name tail
31-
Path /var/log/containers/*.log
32-
multiline.parser docker, cri
33-
Tag kube.*
34-
Mem_Buf_Limit 5MB
35-
Skip_Long_Lines On
36-
37-
filters: |
38-
[FILTER]
39-
Name kubernetes
40-
Match kube.*
41-
Merge_Log On
42-
Keep_Log Off
43-
K8S-Logging.Parser On
44-
K8S-Logging.Exclude On
45-
46-
[FILTER]
47-
Name grep
48-
Match kube.*
49-
Regex $kubernetes['container_name'] ^envoy$
50-
51-
[FILTER]
52-
Name parser
53-
Match kube.*
54-
Key_Name log
55-
Parser envoy
56-
Reserve_Data True
57-
58-
outputs: |
59-
[OUTPUT]
60-
Name loki
61-
Match kube.*
62-
Host loki.monitoring.svc.cluster.local
63-
Port 3100
64-
Labels job=fluentbit, app=$kubernetes['labels']['app'], k8s_namespace_name=$kubernetes['namespace_name'], k8s_pod_name=$kubernetes['pod_name'], k8s_container_name=$kubernetes['container_name']
65-
66-
resources:
67-
requests:
68-
cpu: 100m
69-
memory: 128Mi
70-
limits:
71-
cpu: 200m
72-
memory: 256Mi
Lines changed: 135 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,158 @@
1-
# Values for Grafana
21
fullnameOverride: grafana
32
persistence:
3+
enabled: false
4+
serviceMonitor:
45
enabled: true
5-
size: 10Gi
6-
resources:
7-
requests:
8-
cpu: 100m
9-
memory: 128Mi
10-
limits:
11-
cpu: 200m
12-
memory: 256Mi
136
datasources:
147
datasources.yaml:
158
apiVersion: 1
169
datasources:
1710
- name: Prometheus
1811
type: prometheus
1912
url: http://prometheus
13+
route:
14+
main:
15+
enabled: true
16+
apiVersion: gateway.networking.k8s.io/v1
17+
kind: HTTPRoute
18+
hostnames:
19+
- grafana.lukehouge.com
20+
- grafana.rajsingh.info
21+
parentRefs:
22+
- group: gateway.networking.k8s.io
23+
kind: Gateway
24+
name: robbinsdale
25+
namespace: envoy-gateway-system
2026
adminPassword: admin
21-
testFramework:
22-
enabled: false
23-
service:
24-
type: LoadBalancer
2527
dashboardProviders:
2628
dashboardproviders.yaml:
2729
apiVersion: 1
2830
providers:
29-
- name: "envoy-gateway"
31+
- name: 'envoy-gateway'
3032
orgId: 1
31-
folder: "envoy-gateway"
33+
folder: 'envoy-gateway'
3234
type: file
3335
disableDeletion: false
3436
editable: true
3537
options:
3638
path: /var/lib/grafana/dashboards/envoy-gateway
39+
- name: "argocd"
40+
orgId: 1
41+
folder: "argocd"
42+
type: file
43+
disableDeletion: false
44+
editable: true
45+
options:
46+
path: /var/lib/grafana/dashboards/argocd
47+
- name: "ceph"
48+
orgId: 1
49+
folder: "ceph"
50+
type: file
51+
disableDeletion: false
52+
editable: true
53+
options:
54+
path: /var/lib/grafana/dashboards/ceph
55+
- name: "proxmox"
56+
orgId: 1
57+
folder: "proxmox"
58+
type: file
59+
disableDeletion: false
60+
editable: true
61+
options:
62+
path: /var/lib/grafana/dashboards/proxmox
63+
- name: "kubernetes"
64+
orgId: 1
65+
folder: "kubernetes"
66+
type: file
67+
disableDeletion: false
68+
editable: true
69+
options:
70+
path: /var/lib/grafana/dashboards/kubernetes
71+
- name: "volsync"
72+
orgId: 1
73+
folder: "volsync"
74+
type: file
75+
disableDeletion: false
76+
editable: true
77+
options:
78+
path: /var/lib/grafana/dashboards/volsync
79+
- name: "gateway-api"
80+
orgId: 1
81+
folder: "gateway-api"
82+
type: file
83+
disableDeletion: false
84+
editable: true
85+
options:
86+
path: /var/lib/grafana/dashboards/gateway-api
3787
dashboardsConfigMaps:
3888
envoy-gateway: "grafana-dashboards"
89+
dashboards:
90+
argocd:
91+
# https://grafana.com/grafana/dashboards/19993-argocd-operational-overview/
92+
argocd-operational-overview:
93+
gnetId: 19993
94+
revision: 2
95+
datasource: prometheus
96+
# https://grafana.com/grafana/dashboards/19975-argocd-notifications-overview/
97+
argocd-notifications-overview:
98+
gnetId: 19975
99+
revision: 2
100+
datasource: prometheus
101+
# https://grafana.com/grafana/dashboards/19974-argocd-application-overview/
102+
argocd-application-overview:
103+
gnetId: 19974
104+
revision: 2
105+
datasource: prometheus
106+
ceph:
107+
ceph-cluster:
108+
gnetId: 2842
109+
revision: 18
110+
datasource: prometheus
111+
ceph-osd:
112+
gnetId: 5336
113+
revision: 9
114+
datasource: prometheus
115+
ceph-pools:
116+
gnetId: 5342
117+
revision: 9
118+
datasource: prometheus
119+
volsync:
120+
volsync-overview:
121+
gnetId: 21356
122+
revision: 3
123+
datasource: prometheus
124+
gateway-api:
125+
# Gateway API Dashboards from Kuadrant
126+
gateway-api-gatewayclasses:
127+
gnetId: 19432
128+
revision: 2
129+
datasource: prometheus
130+
gateway-api-gateways:
131+
gnetId: 19433
132+
revision: 2
133+
datasource: prometheus
134+
gateway-api-httproutes:
135+
gnetId: 19434
136+
revision: 2
137+
datasource: prometheus
138+
gateway-api-grpcroutes:
139+
gnetId: 19570
140+
revision: 2
141+
datasource: prometheus
142+
gateway-api-tlsroutes:
143+
gnetId: 19572
144+
revision: 2
145+
datasource: prometheus
146+
gateway-api-tcproutes:
147+
gnetId: 19571
148+
revision: 2
149+
datasource: prometheus
150+
gateway-api-udproutes:
151+
gnetId: 19573
152+
revision: 2
153+
datasource: prometheus
154+
sidecar:
155+
dashboards:
156+
enabled: true
157+
label: grafana_dashboard
158+
folderAnnotation: grafana_folder

clusters/talos-robbinsdale/apps/monitoring/kustomization.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,6 @@ helmCharts:
5858
releaseName: opentelemetry-collector
5959
includeCRDs: true
6060
valuesFile: opentelemetry-collector-values.yaml
61-
# - name: loki
62-
# repo: https://grafana.github.io/helm-charts
63-
# version: 6.12.0
64-
# namespace: monitoring
65-
# releaseName: loki
66-
# includeCRDs: true
67-
# valuesFile: loki-values.yaml
68-
# - name: promtail
69-
# repo: https://grafana.github.io/helm-charts
70-
# version: 6.0.0
71-
# namespace: monitoring
72-
# releaseName: promtail
73-
# includeCRDs: true
74-
# valuesFile: promtail-values.yaml
7561
- name: kube-state-metrics
7662
repo: https://prometheus-community.github.io/helm-charts
7763
version: 5.28.0

0 commit comments

Comments
 (0)