-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
143 lines (140 loc) · 5.22 KB
/
config.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
137
138
139
140
141
142
143
# Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.
# Comma-separated list of Mimir roles that this worker should fulfill.
# Possible roles are:
# - "query-scheduler"
# - "query-frontend"
# - "querier"
# - "store-gateway"
# - "ingester"
# - "distributor"
# - "ruler"
# - "alertmanager"
# - "compactor"
# Note that for a mimir deployment to be valid, each one of these roles needs to be
# assigned to at least one worker node.
#
# Additionally, you can assign these optional roles:
# - "overrides-exporter"
# - "flusher"
#
# These roles are optional in that they're not required for a mimir
# deployment to function.
#
# Supported meta-roles:
# - "all" (equivalent to all required roles)
# # TODO
# - "write" (equivalent to "distributor,ingester")
# - "read" (equivalent to "query_frontend,querier")
# - "backend" (equivalent to "store_gateway,compactor,ruler,alertmanager,query_scheduler,overrides_exporter")
options:
# Mimir roles
role-compactor:
description: >
The compactor increases query performance and reduces long-term storage
usage by combining blocks. This deduplicates chunks and reduces the size
of the index, resulting in reduced storage costs. Querying fewer blocks
is faster, so it also increases query speed.
type: boolean
default: false
role-distributor:
description: >
The distributor is a stateless component that receives time-series data
from Prometheus or the Grafana agent. It validates the data for
correctness and ensures that it is within the configured limits for a
given tenant. The distributor then divides the data into batches and
sends it to multiple ingesters in parallel.
type: boolean
default: false
role-ingester:
description: >
The ingester is a stateful component that writes incoming series to
long-term storage on the write path and returns series samples for
queries on the read path.
type: boolean
default: false
role-querier:
description: >
The querier is a stateless component that evaluates PromQL expressions
by fetching time series and labels on the read path.
The querier uses the store-gateway component to query the long-term
storage and the ingester component to query recently written data.
type: boolean
default: false
role-query-frontend:
description: >
The query-frontend is a stateless component that provides the same API
as the querier and can be used to accelerate the read path.
When you deploy the query-frontend, you should make query requests to
the query-frontend instead of the queriers.
type: boolean
default: false
role-store-gateway:
description: >
The store-gateway component, which is stateful, queries blocks from
long-term storage. On the read path, the querier and the ruler use the
store-gateway when handling the query, whether the query comes from a
user or from when a rule is being evaluated.
type: boolean
default: false
role-alertmanager:
description: >
The Mimir Alertmanager is a component that accepts alert notifications
from the Mimir ruler.
type: boolean
default: false
role-overrides-exporter:
description: >
Grafana Mimir supports applying overrides on a per-tenant basis. A number
of overrides configure limits that prevent a single tenant from using too
many resources. The overrides-exporter component exposes limits as
Prometheus metrics so that operators can understand how close tenants are
to their limits.
type: boolean
default: false
role-query-scheduler:
description: >
The query-scheduler is an optional, stateless component that retains a
queue of queries to execute, and distributes the workload to available
queriers.
type: boolean
default: false
role-ruler:
description: >
The ruler is an optional component that evaluates PromQL expressions
defined in recording and alerting rules. Each tenant has a set of
recording and alerting rules and can group those rules into namespaces.
type: boolean
default: false
role-flusher:
description: >
Flusher is designed to be used as a job to flush the data from the WAL on
disk. Flusher works with both chunks-based and blocks-based ingesters.
type: boolean
default: false
role-read:
description: >
Meta-role that includes the Mimir components that belong to the "read
path". It enables query-frontend and querier.
type: boolean
default: false
role-write:
description: >
Meta-role that includes the Mimir components that belong to the "write
path". It enables distributor and ingester.
type: boolean
default: false
role-backend:
description: >
Meta-role that includes the Mimir components that belong to the "backend
path". It enables store-gateway, compactor, ruler, alertmanager,
query-scheduler, and overrides-exporter.
type: boolean
default: false
role-all:
description: >
Meta-role that can be used to run a worker in monolithic mode. It enables
compactor, distributor, ingester, querier, query-frontend, ruler and
store-gateway.
type: boolean
default: false