Coder Social home page Coder Social logo

murznn / ddev-grafana Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 58 KB

Grafana Stack addon for DDEV: Grafana (GUI), Prometheus (metrics), Tempo (tracing, OpenTelemetry), Loki (logs, promtail)

License: Apache License 2.0

Shell 100.00%
ddev-get grafana grafana-loki grafana-tempo loki tempo

ddev-grafana's Introduction

tests project is maintained

ddev-grafana

What is ddev-grafana?

This repository provides Grafana stack addon to DDEV.

It contains several components from Grafana stack:

  • Grafana: an open source analytics and interactive visualization web application. It provides charts, graphs, and alerts for the web when connected to supported data sources.

  • Prometheus: an open source monitoring solution written in Go that collects metrics data and stores that data in a time series database.

  • Loki: a horizontally scalable, highly available, multi-tenant log aggregation solution.

  • Tempo: an open source, easy-to-use, and high-scale distributed tracing backend.

Be aware that this addon uses a lot of port mapping, so port numbers may overlap with another running ddev project or local apps, that can lead to startup errors, and even hidden errors with "503: No ddev back-end site available" if the same port is configured with HTTP on one project and HTTPS on another, here is the issue about this: ddev/ddev#4794

To resolve such issues try to find the conflicting port and comment it or change the port number to a free one.

Installation

  1. In the DDEV project directory launch the command:
ddev get MurzNN/ddev-grafana
  1. Restart the DDEV instance:
ddev restart
  1. Open the Grafana web interface via the url: https://your-project-name.ddev.site:3000/

Customizations

If you need to run several projects with Tempo OpenTelemetry collectors, with default settings it will fail, because several projects can't use the same port number on the host network. To fix this you should disable mapping ports to the host network on the second project via renaming the file docker-compose.grafana.host-ports.yaml to docker-compose.grafana.host-ports.yaml.disabled, or change port numbers to unique ones, and restart the projects.

If you want to disable binding Grafana services to the localhost, rename the files:

  • docker-compose.grafana.localhost.yaml to docker-compose.grafana.namedhosts.yaml.disabled
  • docker-compose.grafana.namedhosts.yaml.disabled to docker-compose.grafana.namedhosts.yaml

If you need to expose non-HTTP ports (gRPC, etc), you can uncomment them in the docker-compose.grafana.localhost.yaml file.

** Contributed and maintained by @MurzNN.

Extra

Integration with popular CMSs and frameworks:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.