Skip to content

Commit f79029d

Browse files
add multitenancy examples to the docs (#463)
1 parent 7b80e1e commit f79029d

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

provisioning/datasources/datasources.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@ datasources:
1010
access: proxy
1111
# <string> Sets URL for sending queries to VictoriaLogs server.
1212
# see https://docs.victoriametrics.com/victorialogs/querying/
13-
url: http://victorialogs:9428
13+
url: http://victorialogs:9428
14+
jsonData:
15+
# Multitenancy settings, see https://docs.victoriametrics.com/victorialogs/#multitenancy
16+
# to use the multitenancy uncomment lines below: AccountID and ProjectID
17+
multitenancyHeaders:
18+
#AccountID: 0
19+
#ProjectID: 0

src/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ Try it at [VictoriaMetrics playground](https://play-grafana.victoriametrics.com/
2121
For detailed instructions on how to install the plugin on Grafana Cloud or locally, please checkout the [Plugin installation docs](https://grafana.com/docs/grafana/latest/plugins/installation/).
2222
For installation options in Docker or Kubernetes refer to [these docs](https://github.com/VictoriaMetrics/victorialogs-datasource?tab=readme-ov-file#installation).
2323

24+
## Multitenancy configuration
25+
26+
VictoriaLogs datasource supports [multitenancy](https://docs.victoriametrics.com/victorialogs/#multitenancy) via `multitenancyHeaders` datasource configuration option.
27+
To configure it, set AccountID and ProjectID in the `multitenancyHeaders` section.
28+
29+
<img alt="Multitenancy configuration" src="https://github.com/VictoriaMetrics/victorialogs-datasource/blob/main/src/img/multitenancy_configuration.png?raw=true">
30+
2431
### Manual configuration via UI
2532

2633
Once the plugin is installed on your Grafana instance, follow [these instructions](https://grafana.com/docs/grafana/latest/datasources/add-a-data-source/)
@@ -38,6 +45,12 @@ datasources:
3845
access: proxy
3946
url: http://victorialogs:9428
4047
isDefault: true
48+
jsonData:
49+
# Multitenancy settings, see https://docs.victoriametrics.com/victorialogs/#multitenancy
50+
# to use the multitenancy, uncomment lines below: AccountID and ProjectID
51+
multitenancyHeaders:
52+
#AccountID: 0
53+
#ProjectID: 0
4154
```
4255

4356
## Building queries
84.7 KB
Loading

0 commit comments

Comments
 (0)