-
Notifications
You must be signed in to change notification settings - Fork 0
/
path_permissions.yaml
216 lines (200 loc) · 4.58 KB
/
path_permissions.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
read_metrics:
paths:
- path: /prometheus/api/v1/query
methods:
- GET
- POST
- path: /prometheus/api/v1/query_range
methods:
- GET
- POST
- path: /prometheus/api/v1/query_exemplars
methods:
- GET
- POST
- path: /prometheus/api/v1/series
methods:
- GET
- POST
- path: /prometheus/api/v1/labels
methods:
- GET
- POST
- path: /prometheus/api/v1/label/{name}/values
methods:
- GET
- path: /prometheus/api/v1/metadata
methods:
- GET
- path: /prometheus/api/v1/read
methods:
- POST
- path: /prometheus/api/v1/cardinality/label_names
methods:
- GET
- POST
- path: /prometheus/api/v1/cardinality/label_values
methods:
- GET
- POST
write_metrics:
paths:
- path: /api/v1/push
methods:
- POST
- path: /otlp/v1/metrics
methods:
- POST
# delete_metrics: # TODO: this API doesn't seem to be implemented
read_metrics_rules:
paths:
- path: /ruler/rule_groups
methods:
- GET
- path: /prometheus/api/v1/rules
methods:
- GET
- path: /prometheus/api/v1/alerts #TODO: does this fall under alerts?
methods:
- GET
- path: /prometheus/config/v1/rules
methods:
- GET
- path: /prometheus/config/v1/rules/{namespace}
methods:
- GET
- path: /prometheus/config/v1/rules/{namespace}/{group}
methods:
- GET
write_metrics_rules:
paths:
- path: /prometheus/config/v1/rules/{namespace}
methods:
- POST
delete_metrics_rules:
paths:
- path: /prometheus/config/v1/rules/{namespace}/{group}
methods:
- DELETE
- path: /prometheus/config/v1/rules/{namespace}
methods:
- DELETE
# - path: /ruler/delete_tenant_config # TODO: do users need access to this or is it for Mimir admins?
# methods:
# - POST
read_metrics_alerts:
paths:
# - path: /prometheus/api/v1/alerts # TODO: does this fall under promethes rules?
# methods:
# - GET
- path: /multitenant_alertmanager/configs
methods:
- GET
- path: /alertmanager # TODO: how do we limit what can be done through the UI (silence) and how do we expose it with the tenant header (since only 1 can be present)
methods:
- GET
- path: /api/v1/alerts
methods:
- GET
write_metrics_alerts:
paths:
- path: /api/v1/alerts
methods:
- POST
delete_metrics_alerts:
paths:
- path: /api/v1/alerts
methods:
- DELETE
# - path: /multitenant_alertmanager/delete_tenant_config # TODO: do users need access to this or is it for Mimir admins?
# methods:
# - POST
read_logs:
paths:
- path: /loki/api/v1/query
methods:
- GET
- path: /loki/api/v1/query_range
methods:
- GET
- path: /loki/api/v1/labels
methods:
- GET
- path: /loki/api/v1/label/{name}/values
methods:
- GET
- path: /loki/api/v1/series
methods:
- GET
- path: /loki/api/v1/tail
methods:
- GET
write_logs:
- path: /loki/api/v1/push
methods:
- POST
# delete_logs: # TODO: this API doesn't seem to be implemented
read_logs_rules:
paths:
- path: /loki/api/v1/rules
methods:
- GET
- path: /prometheus/config/v1/rules/{namespace}
methods:
- GET
- path: /prometheus/config/v1/rules/{namespace}/{group}
methods:
- GET
# TODO: should we add support for the /api/prom endpoints
- path: /prometheus/api/v1/alerts #TODO: should this be used?
methods:
- GET
- path: /prometheus/config/v1/rules #TODO: should this be used?
methods:
- GET
write_logs_rules:
paths:
- path: /loki/api/v1/rules/{namespace}
methods:
- POST
delete_logs_rules:
paths:
- path: /loki/api/v1/rules/{namespace}/{group}
methods:
- DELETE
- path: /loki/api/v1/rules/{namespace}
methods:
- DELETE
# TODO: should we add support for the /api/prom endpoints
read_traces:
paths:
- path: /api/traces/{traceID}
methods:
- GET
- path: /api/search?{params}
methods:
- GET
- path: /api/search/tags
methods:
- GET
- path: /api/search/tag/{tag}/values
methods:
- GET
- path: /api/v2/search/tag/{tag}/values
methods:
- GET
write_traces:
paths:
- path: /otlp/v1/traces
methods:
- POST
# - path: /otlp/v1/traces # TODO: left here for OTPL gRPC support. Tempo gateway does not support this (yet). Also, need to fine tune with how OAthkeeper expects gRPC traffic to be identified in a rule.
# methods:
# - POST
- path: /jaeger/api/traces # TODO: figure out if this also includes Thrift Compact and Thrift Binary
methods:
- POST
# TODO: figure out Jaeger gRPC support
- path: /zipkin/spans
methods:
- POST