-
Notifications
You must be signed in to change notification settings - Fork 68
/
observatorium-logs-template.jsonnet
121 lines (121 loc) · 6.37 KB
/
observatorium-logs-template.jsonnet
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
local obs = import 'observatorium.libsonnet';
{
apiVersion: 'template.openshift.io/v1',
kind: 'Template',
metadata: {
name: 'observatorium-logs',
},
objects: [
obs.lokiCaches.manifests[name] {
metadata+: {
namespace:: 'hidden',
},
}
for name in std.objectFields(obs.lokiCaches.manifests)
] + [
obs.loki.manifests[name] {
metadata+: {
namespace:: 'hidden',
},
}
for name in std.objectFields(obs.loki.manifests)
],
parameters: [
{ name: 'NAMESPACE', value: 'observatorium-logs' },
{ name: 'ALERTMANAGER_NAMESPACE', value: 'observatorium-mst-stage' },
{ name: 'ALERTMANAGER_EXTERNAL_URL', value: 'https://observatorium-alertmanager-mst.api.stage.openshift.com' },
{ name: 'RULES_OBJSTORE_S3_SECRET', value: 'rules-objstore-stage-s3' },
{ name: 'STORAGE_CLASS', value: 'gp2' },
{ name: 'LOKI_LOG_LEVEL', value: 'error' },
{ name: 'LOKI_IMAGE_TAG', value: '2.7.2' },
{ name: 'LOKI_IMAGE', value: 'docker.io/grafana/loki' },
{ name: 'LOKI_S3_SECRET', value: 'observatorium-mst-logs-stage-s3' },
{ name: 'LOKI_COMPACTOR_REPLICAS', value: '3' },
{ name: 'LOKI_COMPACTOR_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_COMPACTOR_CPU_LIMITS', value: '1000m' },
{ name: 'LOKI_COMPACTOR_MEMORY_REQUESTS', value: '2Gi' },
{ name: 'LOKI_COMPACTOR_MEMORY_LIMITS', value: '4Gi' },
{ name: 'LOKI_DISTRIBUTOR_REPLICAS', value: '2' },
{ name: 'LOKI_DISTRIBUTOR_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_DISTRIBUTOR_CPU_LIMITS', value: '1000m' },
{ name: 'LOKI_DISTRIBUTOR_MEMORY_REQUESTS', value: '500Mi' },
{ name: 'LOKI_DISTRIBUTOR_MEMORY_LIMITS', value: '1Gi' },
{ name: 'LOKI_INGESTER_REPLICAS', value: '2' },
{ name: 'LOKI_INGESTER_CPU_REQUESTS', value: '1000m' },
{ name: 'LOKI_INGESTER_CPU_LIMITS', value: '2000m' },
{ name: 'LOKI_INGESTER_MEMORY_REQUESTS', value: '5Gi' },
{ name: 'LOKI_INGESTER_MEMORY_LIMITS', value: '10Gi' },
{ name: 'LOKI_INDEX_GATEWAY_REPLICAS', value: '3' },
{ name: 'LOKI_INDEX_GATEWAY_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_INDEX_GATEWAY_CPU_LIMITS', value: '1000m' },
{ name: 'LOKI_INDEX_GATEWAY_MEMORY_REQUESTS', value: '2Gi' },
{ name: 'LOKI_INDEX_GATEWAY_MEMORY_LIMITS', value: '4Gi' },
{ name: 'LOKI_QUERIER_REPLICAS', value: '2' },
{ name: 'LOKI_QUERIER_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_QUERIER_CPU_LIMITS', value: '500m' },
{ name: 'LOKI_QUERIER_MEMORY_REQUESTS', value: '600Mi' },
{ name: 'LOKI_QUERIER_MEMORY_LIMITS', value: '1200Mi' },
{ name: 'LOKI_QUERY_SCHEDULER_REPLICAS', value: '3' },
{ name: 'LOKI_QUERY_SCHEDULER_CPU_REQUESTS', value: '1000m' },
{ name: 'LOKI_QUERY_SCHEDULER_CPU_LIMITS', value: '2000m' },
{ name: 'LOKI_QUERY_SCHEDULER_MEMORY_REQUESTS', value: '600Mi' },
{ name: 'LOKI_QUERY_SCHEDULER_MEMORY_LIMITS', value: '1200Mi' },
{ name: 'LOKI_QUERY_FRONTEND_REPLICAS', value: '3' },
{ name: 'LOKI_QUERY_FRONTEND_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_QUERY_FRONTEND_CPU_LIMITS', value: '500m' },
{ name: 'LOKI_QUERY_FRONTEND_MEMORY_REQUESTS', value: '600Mi' },
{ name: 'LOKI_QUERY_FRONTEND_MEMORY_LIMITS', value: '1200Mi' },
{ name: 'LOKI_RULER_REPLICAS', value: '2' },
{ name: 'LOKI_RULER_CPU_REQUESTS', value: '1000m' },
{ name: 'LOKI_RULER_CPU_LIMITS', value: '2000m' },
{ name: 'LOKI_RULER_MEMORY_REQUESTS', value: '4Gi' },
{ name: 'LOKI_RULER_MEMORY_LIMITS', value: '6Gi' },
// This value should be set equal t
// LOKI_REPLICATION_FACTOR <= LOKI_INGESTER_REPLICAS
{ name: 'LOKI_REPLICATION_FACTOR', value: '2' },
// The querier concurrency should be equal to (or less than) the CPU cores of the system the querier runs
// A higher value will lead to a querier trying to process more requests than there are available
// cores and will result in scheduling delays.
{ name: 'LOKI_QUERIER_MAX_CONCURRENCY', value: '2' },
// The replay memory ceiling should be calculated as 50% of the ingester memory limit.
{ name: 'LOKI_INGESTER_WAL_REPLAY_MEMORY_CEILING', value: '5GB' },
{ name: 'LOKI_CHUNK_CACHE_REPLICAS', value: '3' },
{ name: 'LOKI_CHUNK_CACHE_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_CHUNK_CACHE_CPU_LIMITS', value: '3' },
{ name: 'LOKI_CHUNK_CACHE_MEMORY_REQUESTS', value: '5016Mi' },
{ name: 'LOKI_CHUNK_CACHE_MEMORY_LIMITS', value: '6Gi' },
{ name: 'LOKI_INDEX_QUERY_CACHE_REPLICAS', value: '3' },
{ name: 'LOKI_INDEX_QUERY_CACHE_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_INDEX_QUERY_CACHE_CPU_LIMITS', value: '3' },
{ name: 'LOKI_INDEX_QUERY_CACHE_MEMORY_REQUESTS', value: '1329Mi' },
{ name: 'LOKI_INDEX_QUERY_CACHE_MEMORY_LIMITS', value: '1536Mi' },
{ name: 'LOKI_RESULTS_CACHE_REPLICAS', value: '3' },
{ name: 'LOKI_RESULTS_CACHE_CPU_REQUESTS', value: '500m' },
{ name: 'LOKI_RESULTS_CACHE_CPU_LIMITS', value: '3' },
{ name: 'LOKI_RESULTS_CACHE_MEMORY_REQUESTS', value: '1329Mi' },
{ name: 'LOKI_RESULTS_CACHE_MEMORY_LIMITS', value: '1536Mi' },
{ name: 'LOKI_PVC_REQUEST', value: '10Gi' },
{ name: 'LOKI_INGESTER_PVC_REQUEST', value: '150Gi' },
{ name: 'LOKI_RULER_PVC_REQUEST', value: '10Gi' },
{ name: 'JAEGER_COLLECTOR_NAMESPACE', value: 'observatorium' },
{ name: 'JAEGER_AGENT_IMAGE', value: 'jaegertracing/jaeger-agent' },
{ name: 'JAEGER_AGENT_IMAGE_TAG', value: '1.29.0' },
{ name: 'JAEGER_PROXY_CPU_REQUEST', value: '100m' },
{ name: 'JAEGER_PROXY_MEMORY_REQUEST', value: '100Mi' },
{ name: 'JAEGER_PROXY_CPU_LIMITS', value: '200m' },
{ name: 'JAEGER_PROXY_MEMORY_LIMITS', value: '200Mi' },
{ name: 'MEMCACHED_IMAGE', value: 'docker.io/memcached' },
{ name: 'MEMCACHED_IMAGE_TAG', value: '1.6.13-alpine' },
{ name: 'MEMCACHED_EXPORTER_IMAGE', value: 'docker.io/prom/memcached-exporter' },
{ name: 'MEMCACHED_EXPORTER_IMAGE_TAG', value: 'v0.6.0' },
{ name: 'MEMCACHED_CPU_REQUEST', value: '500m' },
{ name: 'MEMCACHED_CPU_LIMIT', value: '3' },
{ name: 'MEMCACHED_MEMORY_REQUEST', value: '1329Mi' },
{ name: 'MEMCACHED_MEMORY_LIMIT', value: '1844Mi' },
{ name: 'MEMCACHED_EXPORTER_CPU_REQUEST', value: '50m' },
{ name: 'MEMCACHED_EXPORTER_CPU_LIMIT', value: '200m' },
{ name: 'MEMCACHED_EXPORTER_MEMORY_REQUEST', value: '50Mi' },
{ name: 'MEMCACHED_EXPORTER_MEMORY_LIMIT', value: '200Mi' },
{ name: 'SERVICE_ACCOUNT_NAME', value: 'default' },
],
}