blob: d877b05e1d494068db77fa6309e2e5f43780d3a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
global:
namespace: monitoring
grafana:
ingress:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.tls.certresolver: "default"
traefik.ingress.kubernetes.io/redirect-entry-point: https
hosts:
- grafana.topkek.cloud
path: /
tls:
- hosts:
- grafana.topkek.cloud
secretName: grafana-tls
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-server.monitoring.svc.cluster.local
isDefault: true
- name: Elasticsearch
type: elasticsearch
access: proxy
url: http://elasticsearch-master.monitoring.svc.cluster.local:9200
jsonData:
esVersion: 7
timeField: "@timestamp"
prometheus:
alertmanager:
enabled: true
pushgateway:
enabled: true
server:
enabled: true
elasticsearch:
volumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 30Gi
logstash:
enabled: true
volumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi
logstashConfig:
logstash.yml: |
http.host: "0.0.0.0"
xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch-master:9200" ]
logstashPipeline:
logstash.conf: |
input {
tcp {
port => 5044
codec => json
}
}
output {
elasticsearch {
hosts => ["http://elasticsearch-master:9200"]
index => "logstash-%{+YYYY.MM.dd}"
}
}
opentelemetry-collector:
mode: deployment
image:
repository: otel/opentelemetry-collector
tag: "latest"
config:
receivers:
otlp:
protocols:
grpc: {}
http: {}
processors:
batch: {}
exporters:
prometheusremotewrite:
endpoint: "http://prometheus-server.monitoring.svc.cluster.local/api/v1/write"
logging:
loglevel: debug
otlp:
endpoint: "http://logstash.monitoring.svc.cluster.local:5044"
tls:
insecure: true
service:
pipelines:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [prometheusremotewrite]
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
|