Skip to content

Grafana generator #49

@mathieusouflis

Description

@mathieusouflis

Problem statement

Developers who want Grafana monitoring for their project have to manually configure dashboards, data sources, and provisioning. There is no automated setup.

Proposed solution

Implement GrafanaGenerator in generators/common/grafana.go.

  • Name(): "common-grafana"
  • Language(): "*"
  • Modules(): ["grafana"]

Apply() generates:

  • grafana/provisioning/datasources/datasource.yml — Prometheus data source
  • grafana/provisioning/dashboards/dashboard.yml — dashboard provisioning config
  • grafana/dashboards/app.json — base application dashboard
  • Grafana service added to docker-compose.yml (via Patch on the compose file)
  • Backend: Prometheus metrics endpoint setup (varies by language)

Alternatives considered

No response

Area

Core

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions