WIP: Update recipe to newest grafana release #1

Draft
Brooke wants to merge 3 commits from gf-release-12 into main
3 changed files with 41 additions and 5 deletions

View File

@ -2,3 +2,6 @@ TYPE=grafana
DOMAIN=grafana.example.com
LETS_ENCRYPT_ENV=production
COMPOSE_FILE=compose.yml
# GRAFANA_PLUGINS=

View File

@ -0,0 +1,32 @@
# Grafana
> The open and composable observability and data visualization platform.
<!-- metadata -->
* **Category**: Apps
* **Status**: wip
* **Image**: [`grafana`](https://hub.docker.com/r/grafana/grafana), 4, upstream
* **Healthcheck**:
* **Backups**:
* **Email**:
* **Tests**:
* **SSO**:
<!-- endmetadata -->
## Quick start
* `abra app new grafana`
* `abra app config <app-domain>`
* `abra app deploy <app-domain>`
## Plugins
To install and enable a grafana plugin start by finding the repository name, for example the [ClickHouse datasource](https://grafana.com/grafana/plugins/grafana-clickhouse-datasource/?tab=installation) is "grafana-clickhouse-datasource".
Open the config options for your instance with `abra app config <app-domain>`, Take the plugin repository name and paste it in the variable `GRAFANA_PLUGINS`.
If you would like to add multiple plugins just make sure they are comma separated eg. `GRAFANA_PLUGINS=grafana-clickhouse-datasource, alexanderzobnin-zabbix-app`.
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).

View File

@ -3,11 +3,13 @@ version: "3.8"
services:
app:
image: grafana/grafana:8.4.3
image: grafana/grafana-oss:12.0.2
environment:
GF_INSTALL_PLUGINS: "$GRAFANA_PLUGINS"
networks:
- proxy
volumes:
- app:/var/lib/grafana
- grafana:/var/lib/grafana
deploy:
update_config:
failure_action: rollback
@ -19,12 +21,11 @@ services:
- "traefik.http.routers.${STACK_NAME}_web.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}_web.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}_web.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.0.1+8.4.3"
- "coop-cloud.${STACK_NAME}.version=0.1.0+12.0.2"
networks:
proxy:
external: true
volumes:
app:
grafana: