Skip to content

Commit 51372b4

Browse files
authored
Merge pull request #9 from jetify-com/jl/grafana
Jl/grafana
2 parents b1038a2 + d475755 commit 51372b4

File tree

11 files changed

+7493
-0
lines changed

11 files changed

+7493
-0
lines changed

grafana/README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Grafana Plugin
2+
3+
Plugin for the [`grafana`](https://www.nixhub.io/packages/grafana) package. This plugin configures MonogoDB to use a local config file and data directory for this project, and configures the grafana server as a service.
4+
5+
## How to Activate
6+
7+
To install Grafana, run `devbox add grafana@latest`.
8+
9+
To activate this plugin, add the following reference to the `include` section of your `devbox.json` file.
10+
11+
```json
12+
13+
"include": [
14+
"github:jetify-com/devbox-plugins?dir=grafana"
15+
],
16+
```
17+
18+
## Services
19+
20+
* grafana
21+
22+
Use `devbox services up grafana` to start the mongodb server.
23+
24+
## Files
25+
26+
This plugin creates the following helper files:
27+
28+
* **devbox.d/grafana/conf/defaults.ini** - a default grafana config
29+
* **.devbox/virtenv/grafana/process-compose.yaml** - Defines the process to start the Grafana server
30+
31+
## Environment Variables
32+
33+
This plugin sets the following environment variables:
34+
35+
* **$GRAFANA_DATA_DIR**: ".devbox/virtenv/grafana/lib",
36+
* **$GRAFANA_LOG_DIR**: ".devbox/virtenv/grafana/log",
37+
* **$GRAFANA_PLUGIN_DIR**: "devbox.d/grafana/plugins",
38+
* **$GRAFANA_HOMEPATH**: ".devbox/virtenv/grafana",
39+
* **$GRAFANA_CONFIG_DIR**: "devbox.d/grafana/conf",
40+
* **$GRAFANA_PROVISIONING_DIR**: ".devbox/virtenv/grafana/conf/provisioning"
41+
42+
## Other Details
43+
44+
This plugin will copy the Grafana server's public files to `.devbox/virtenv/grafana/public` when you start your shell

0 commit comments

Comments
 (0)