You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sources/operations/blocking-queries.md
+50Lines changed: 50 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,14 @@ overrides:
34
34
# block any query that matches this query hash
35
35
- hash: 2943214005# hash of {stream="stdout",pod="loki-canary-9w49x"}
36
36
types: filter,limited
37
+
38
+
# block queries originating from specific sources via X-Query-Tags
39
+
# Keys and values are matched case-insensitively.
40
+
- pattern: '.*'# optional; if pattern and regex are omittied they will default to '.*' and true
41
+
regex: true
42
+
tags:
43
+
source: grafana
44
+
feature: beta
37
45
```
38
46
{{< admonition type="note" >}}
39
47
Changes to these configurations **do not require a restart**; they are defined in the [runtime configuration file](https://grafana.com/docs/loki/<LOKI_VERSION>/configure/#runtime-configuration-file).
@@ -61,6 +69,48 @@ The order of patterns is preserved, so the first matching pattern will be used.
61
69
62
70
Blocked queries are logged, as well as counted in the `loki_blocked_queries` metric on a per-tenant basis.
63
71
72
+
When a policy matches by pattern/hash/regex, Loki logs whether the query type and request tags matched that policy:
Copy file name to clipboardExpand all lines: docs/sources/setup/install/docker.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: Install Loki with Docker or Docker Compose
3
-
menuTitle: Install using Docker
3
+
menuTitle: Install using Docker
4
4
description: Describes how to install Loki using Docker or Docker Compose
5
5
aliases:
6
6
- ../../installation/docker/
7
7
weight: 400
8
8
---
9
9
# Install Loki with Docker or Docker Compose
10
10
11
-
You can install Loki and Promtail with Docker or Docker Compose if you are evaluating, testing, or developing Loki.
11
+
You can install Loki and Alloy with Docker or Docker Compose if you are evaluating, testing, or developing Loki.
12
12
For production, Grafana recommends installing with Helm or Tanka.
13
13
14
14
The configuration files associated with these installation instructions run Loki as a single binary.
@@ -27,18 +27,18 @@ The configuration files associated with these installation instructions run Loki
27
27
cd loki
28
28
```
29
29
30
-
1. Copy and paste the following commands into your command line to download `loki-local-config.yaml` and `promtail-docker-config.yaml` to your `loki` directory.
30
+
1. Copy and paste the following commands into your command line to download `loki-local-config.yaml` and `promtail-docker-config.yaml` to your `loki` directory. If necessary, update the Loki version numbers in the commands to match your version of Loki.
1. Copy and paste the following commands into your command line to start the Docker containers using the configuration files you downloaded in the previous step.
37
+
1. Copy and paste the following commands into your command line to start the Docker containers using the configuration files you downloaded in the previous step. If necessary, update the Loki version numbers in the commands to match your version of Loki.
@@ -56,8 +56,8 @@ The configuration files associated with these installation instructions run Loki
56
56
```bash
57
57
58
58
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
59
-
9485de9ad351 grafana/promtail:3.4.1"/usr/bin/promtail -…" About a minute ago Up About a minute promtail
60
-
cece1df84519 grafana/loki:3.4.1"/usr/bin/loki -conf…" About a minute ago Up About a minute 0.0.0.0:3100->3100/tcp, :::3100->3100/tcp loki
59
+
9485de9ad351 grafana/promtail:3.5.7"/usr/bin/promtail -…" About a minute ago Up About a minute promtail
60
+
cece1df84519 grafana/loki:3.5.7"/usr/bin/loki -conf…" About a minute ago Up About a minute 0.0.0.0:3100->3100/tcp, :::3100->3100/tcp loki
61
61
```
62
62
63
63
1. Verify that Loki is up and running.
@@ -67,19 +67,19 @@ The configuration files associated with these installation instructions run Loki
67
67
68
68
## Install with Docker on Windows
69
69
70
-
1. Copy and paste the following commands into your command line to download `loki-local-config.yaml` and `promtail-docker-config.yaml` to your `loki` directory. Note that you will need to replace the `<local-path>`in the commands with your local path.
70
+
1. Copy and paste the following commands into your command line to download `loki-local-config.yaml` and `promtail-docker-config.yaml` to your `loki` directory. Note that you will need to replace the `<local-path>`in the commands with your local path. If necessary, update the Loki version numbers in the commands to match your version of Loki.
1. Copy and paste the following commands into your command line to start the Docker containers using the configuration files you downloaded in the previous step. Note that you will need to replace the `<local-path>`in the commands with your local path.
78
+
1. Copy and paste the following commands into your command line to start the Docker containers using the configuration files you downloaded in the previous step. Note that you will need to replace the `<local-path>`in the commands with your local path. If necessary, update the Loki version numbers in the commands to match your version of Loki.
79
79
80
80
```bash
81
-
docker run --name loki -v <local-path>:/mnt/config -p 3100:3100 grafana/loki:3.4.1 --config.file=/mnt/config/loki-config.yaml
82
-
docker run -v <local-path>:/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.4.1 --config.file=/mnt/config/promtail-config.yaml
81
+
docker run --name loki -v <local-path>:/mnt/config -p 3100:3100 grafana/loki:3.5.7 --config.file=/mnt/config/loki-config.yaml
82
+
docker run -v <local-path>:/mnt/config -v /var/log:/var/log --link loki grafana/promtail:3.5.7 --config.file=/mnt/config/promtail-config.yaml
83
83
```
84
84
85
85
1. Verify that Loki is up and running.
@@ -98,10 +98,12 @@ Run the following commands in your command line. They work for Windows or Linux
98
98
cd loki
99
99
```
100
100
101
-
1. Copy and paste the following command into your command line to download the `docker-compose` file.
101
+
1. Copy and paste the following commands into your command line to download the `docker-compose.yaml` and `alloy-local-config.yaml` files. If necessary, update the Loki version numbers in the commands to match your version of Loki.
0 commit comments