Public Repository

Last pushed: 2 months ago
Short Description
Crunchy Grafana is an open source, feature rich metrics dashboard and graph editor.
Full Description

Crunchy Grafana

The Crunchy Grafana docker image contains the following packages:

  • Grafana

Start Grafana Instance

The following starts a PostgreSQL, Collect, Prometheus and Grafana container:

docker network create --driver bridge pgnet

docker run \
    --name=primary \
    --hostname=primary \
    --publish=5432:5432 \
    --network="pgnet" \
    --env=PG_MODE=primary \
    --env=PG_PRIMARY_USER=primaryuser \
    --env=PG_PRIMARY_PASSWORD=password \
    --env=PG_PRIMARY_HOST=primary \
    --env=PG_PRIMARY_PORT=5432 \
    --env=PG_DATABASE=userdb \
    --env=PG_USER=testuser \
    --env=PG_PASSWORD=password \
    --env=PG_ROOT_PASSWORD=password \
    --detach crunchydata/crunchy-postgres:centos7-10.3-1.8.2

docker run \
    --name=collect \
    --hostname=collect\
    --network="pgnet" \
    --publish=9187:9187 \
    --publish=9100:9100 \
    --env=DATA_SOURCE_NAME=postgresql://testuser:password@primary:5432/postgres?sslmode=disable \
    --detach crunchydata/crunchy-collect:centos7-10.3-1.8.2

docker run \
    --name=prometheus \
    --hostname=prometheus \
    --network="pgnet" \
    --publish=9090:9090 \
    --env=COLLECT_HOST=collect \
    --env=SCRAPE_INTERVAL=5s \
    --env=SCRAPE_TIMEOUT=5s \
    --detach crunchydata/crunchy-prometheus:centos7-10.3-1.8.2

docker run \
    --name=grafana \
    --hostname=grafana \
    --network="pgnet" \
    --publish=3000:3000 \
    --env=ADMIN_USER=admin \
    --env=ADMIN_PASS=password \
    --env=PROM_HOST=prometheus \
    --env=PROM_PORT=9090 \
    --detach crunchydata/crunchy-grafana:centos7-10.3-1.8.2

Using Grafana

To explore the preloaded metrics dashboard in Grafana, in a web browser, navigate to:
http://0.0.0.0:3000/dashboard/db/postgresqldetails

Environment Variables

See the official documentation for a list of environment variables available for this container.

More Examples

For more examples, see the official Crunchy Containers GitHub repository.

Docker Pull Command
Owner
crunchydata