All Projects → D1ceWard → grafana_on_dokku

D1ceWard / grafana_on_dokku

Licence: other
Dockerfile to run Grafana (monitoring) on Dokku (mini-Heroku)

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to grafana on dokku

dokku-graphite
a graphite, grafana, statsd, carbon plugin for dokku
Stars: ✭ 47 (+291.67%)
Mutual labels:  grafana, dokku
workshop-prometheus
Workshop Prometheus ♥️ Grafana
Stars: ✭ 13 (+8.33%)
Mutual labels:  grafana
prom-bitbucket-exporter
Prometheus Exporter for Bitbucket
Stars: ✭ 47 (+291.67%)
Mutual labels:  grafana
django-template
The ultimate Django template: production ready Django 3.2 with Docker, HTTPS and CI/CD using Github actions ‎️‍🔥
Stars: ✭ 20 (+66.67%)
Mutual labels:  grafana
jira-grafana-json-datasource
Connect Grafana to Jira cloud to retrieve metrics on your Jira issues.
Stars: ✭ 68 (+466.67%)
Mutual labels:  grafana
PogoStats
A mini Monitoring tool to collect performance data of Pokémon, Quests, Raids and Spawnpoints.
Stars: ✭ 17 (+41.67%)
Mutual labels:  grafana
Go-gRPC-RabbitMQ-microservice
Go gRPC RabbitMQ email microservice
Stars: ✭ 107 (+791.67%)
Mutual labels:  grafana
grafana-git-sync
A docker image that syncs grafana dashboards, datasources and organizations to a git repository
Stars: ✭ 17 (+41.67%)
Mutual labels:  grafana
bounded-disturbances
A k6/.NET red/green load testing workshop
Stars: ✭ 39 (+225%)
Mutual labels:  grafana
docker-monitoring-windows
Monitor your Docker containers using prometheus, cAdvisor , node-exported and grafana on Windows
Stars: ✭ 49 (+308.33%)
Mutual labels:  grafana
firehose
firehose: the metrics gateway for prometheus
Stars: ✭ 23 (+91.67%)
Mutual labels:  grafana
fronius-to-influx
Collect Fronius inverter data and save in Influxdb for Grafana
Stars: ✭ 31 (+158.33%)
Mutual labels:  grafana
loki-multi-tenant-proxy
Grafana Loki multi-tenant Proxy. Needed to deploy Grafana Loki in a multi-tenant way
Stars: ✭ 48 (+300%)
Mutual labels:  grafana
prop
An open and opinionated trading platform using productive & familiar open source libraries and tools for strategy research, execution and operation.
Stars: ✭ 26 (+116.67%)
Mutual labels:  grafana
telegraf-influxdb-grafana
TIG Stack
Stars: ✭ 30 (+150%)
Mutual labels:  grafana
spring-boot-prometheus
No description or website provided.
Stars: ✭ 20 (+66.67%)
Mutual labels:  grafana
prometheus-barman-exporter
Barman exporter for Prometheus
Stars: ✭ 23 (+91.67%)
Mutual labels:  grafana
Book k8sInfra
< 컨테이너 인프라 환경 구축을 위한 쿠버네티스/도커 >
Stars: ✭ 176 (+1366.67%)
Mutual labels:  grafana
nfCollector
Collects Netflow version 1, 5, 6, 7, 9 & IPFIX & stores them on InfluxData time-series DB (InfluxDB)
Stars: ✭ 30 (+150%)
Mutual labels:  grafana
skalogs-bundle
Open Source data and event driven real time Monitoring and Analytics Platform
Stars: ✭ 16 (+33.33%)
Mutual labels:  grafana

Grafana Dokku Maintenance

Run Grafana on Dokku

Perquisites

What is Grafana?

Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB.

What is Dokku?

Dokku is the smallest PaaS implementation you've ever seen - Docker powered mini-Heroku.

Requirements

Setup

Note: We are going to use the domain grafana.example.com for demonstration purposes. Make sure to replace it to your domain name.

App and plugins

Create the app

Log onto your Dokku Host to create the Grafana app:

dokku apps:create grafana

Add plugins

Install, create and link PostgreSQL plugin:

# Install postgres plugin on Dokku
dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
# Create running plugin
dokku postgres:create grafana
# Link plugin to the main app
dokku postgres:link grafana grafana

Configuration

Add GF_DATABASE_URL and GF_SERVER_HTTP_PORT to environement variables

# Show all enironement variables to copy content of DATABASE_URL variable
dokku config grafana
# Set GF_DATABASE_URL
dokku config:set grafana GF_DATABASE_URL='previously_copied_database_url'
# Set port to 5000
dokku config:set grafana GF_SERVER_HTTP_PORT=5000

Setting secret key

dokku config:set grafana GF_SECURITY_SECRET_KEY=$(echo `openssl rand -base64 45` | tr -d \=+ | cut -c 1-32)

Domain setup

To get the routing working, we need to apply a few settings. First we set the domain.

dokku domains:set grafana grafana.example.com

Push Grafana to Dokku

Grabbing the repository

First clone this repository onto your machine.

Via SSH

git clone [email protected]:D1ceWard/grafana_on_dokku.git

Via HTTPS

git clone https://github.com/D1ceWard/grafana_on_dokku.git

Set up git remote

Now you need to set up your Dokku server as a remote.

git remote add dokku [email protected]:grafana

Push Grafana

Now we can push Grafana to Dokku (before moving on to the next part).

git push dokku master

SSL certificate

Last but not least, we can go an grab the SSL certificate from Let's Encrypt.

# Install letsencrypt plugin
dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git

# Set certificate contact email
dokku config:set --no-restart grafana [email protected]

# Generate certificate
dokku letsencrypt grafana

In case of an error Challenge validation has failed, please check your proxy settings:

dokku proxy:report                          # you should see http:80:5000
dokku proxy:ports-add grafana http:80:5000  # otherwise, add the proxy to the port

Wrapping up

Your Grafana instance should now be available on https://grafana.example.com.

To add Grafana plugins, simply set the environment variable named GF_INSTALL_PLUGINS:

dokku config:set grafana GF_INSTALL_PLUGINS=grafana-piechart-panel,grafana-github-datasource
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].