-
Notifications
You must be signed in to change notification settings - Fork 1
/
values.yaml
136 lines (131 loc) · 3.75 KB
/
values.yaml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
####################################################
# OpenTelemetry Collector
####################################################
opentelemetry-collector:
image:
repository: otel/opentelemetry-collector-contrib
mode: daemonset
presets:
# enables the k8sattributesprocessor and adds it to the traces, metrics, and logs pipelines
kubernetesAttributes:
enabled: true
# enables the kubeletstatsreceiver and adds it to the metrics pipelines
kubeletMetrics:
enabled: true
# Enables the filelogreceiver and adds it to the logs pipelines
logsCollection:
enabled: true
extraEnvs:
# - name: CLICKHOUSE_USERNAME
# valueFrom:
# secretKeyRef:
# name: clickhouse-credentials
# key: user
# - name: CLICKHOUSE_PASSWORD
# valueFrom:
# secretKeyRef:
# name: clickhouse-credentials
# key: password
config:
exporters:
clickhouse:
endpoint: clickhouse://clickhouse-monitoringdb:9000?dial_timeout=10s&compress=lz4
database: otel
# username: '${env:CLICKHOUSE_USERNAME}'
# password: '${env:CLICKHOUSE_PASSWORD}'
username: collector
password: collector
create_schema: true
logs_table_name: otel_logs
traces_table_name: otel_traces
metrics_table_name: otel_metrics
timeout: 5s
# cluster_name: dev
retry_on_failure:
enabled: true
initial_interval: 5s
max_interval: 30s
max_elapsed_time: 300s
service:
pipelines:
logs:
exporters: [clickhouse]
####################################################
# Grafana
####################################################
grafana:
grafana.ini:
auth:
disable_login_form: true
auth.anonymous:
enabled: true
org_name: Main Org.
org_role: Admin
server:
root_url: "%(protocol)s://%(domain)s:%(http_port)s/"
adminPassword: admin
# persistence:
# type: pvc
# enabled: true
# size: 5Gi
plugins:
- grafana-clickhouse-datasource
- vertamedia-clickhouse-datasource
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: false
editable: true
options:
path: /var/lib/grafana/dashboards/default
dashboardsConfigMaps:
default: chmonitoring-grafana-dashboards
# dashboards:
# default:
# cluster-logs:
# file: dashboards/cluster-logs.json
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: ClickHouse-Grafana
uid: clusterclickhouse
type: grafana-clickhouse-datasource
jsonData:
defaultDatabase: otel
port: 9000
host: clickhouse-monitoringdb
username: 'grafana'
tlsSkipVerify: true
logs:
otelEnabled: true
defaultDatabase: otel
defaultTable: otel_logs
traces:
otelEnabled: true
defaultDatabase: otel
defaultTable: otel_traces
secureJsonData:
password: 'grafana'
- name: ClickHouse-Altinity
uid: clickhouse-altinity
editable: true
access: proxy
type: vertamedia-clickhouse-datasource
url: http://clickhouse-monitoringdb:8123
jsonData:
defaultDatabase: otel
addCorsHeader: true
serverName: "clickhouse"
usePOST: true
useYandexCloudAuthorization: true
xHeaderUser: 'grafana'
tlsSkipVerify: true
dataSourceUrl: http://clickhouse-monitoringdb:8123
secureJsonData:
xHeaderKey: 'grafana'