Skip to content

Feat/126 setting grafana - Configs de Grafana + Acesso seguro a Grafana#127

Merged
AllanDantas21 merged 9 commits intomainfrom
feat/126-setting-grafana
Mar 19, 2026
Merged

Feat/126 setting grafana - Configs de Grafana + Acesso seguro a Grafana#127
AllanDantas21 merged 9 commits intomainfrom
feat/126-setting-grafana

Conversation

@luaraggio
Copy link
Copy Markdown
Collaborator

Modificações do PR:

  • sobe container de Grafana
  • adiciona grafana proxy no nginx
  • seta rede interna p/ isolar grafana. Nginx e prometheus tbm têm acesso a essa rede

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Grafana service to the infra stack and exposes it safely via the existing Nginx reverse proxy, aiming to keep Grafana isolated on an internal Docker network while still reachable (authenticated) through Nginx.

Changes:

  • Added a Grafana container with env-based configuration and a persistent data volume.
  • Added an Nginx reverse-proxy route under /grafana/ protected by the existing JWT auth_request flow.
  • Introduced an internal monitoring network for Grafana, shared with Nginx and Prometheus, plus initial Grafana datasource provisioning for Prometheus.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 6 comments.

File Description
infra/nginx/nginx.conf Adds Grafana upstream and /grafana/ reverse-proxy route behind auth_request.
infra/docker/docker-compose.yml Adds Grafana service, monitoring network/volume, and adjusts exporter mount path.
infra/grafana/config/provisioning/prometheus.yml Adds Grafana provisioning for a Prometheus datasource.
infra/blackbox/config/blackbox.yml Adds Blackbox Exporter modules configuration used by Prometheus probes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread infra/docker/docker-compose.yml Outdated
Comment thread infra/grafana/provisioning/datasources/prometheus.yml
Comment thread infra/nginx/nginx.conf Outdated
Comment thread infra/nginx/nginx.conf Outdated
Comment thread infra/nginx/nginx.conf Outdated
Comment thread infra/docker/docker-compose.yml Outdated
@luaraggio luaraggio force-pushed the feat/126-setting-grafana branch from 771ef88 to 22d91d6 Compare March 19, 2026 21:33
Copy link
Copy Markdown
Contributor

@AllanDantas21 AllanDantas21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!!

Consegui acessar o prometheus e grafana aqui! tá ficando massa dms

@AllanDantas21 AllanDantas21 merged commit 8d405a9 into main Mar 19, 2026
3 checks passed
@AllanDantas21 AllanDantas21 deleted the feat/126-setting-grafana branch March 19, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DEVOPS] - Configurar Grafana e Garantir Acesso Seguro

3 participants