Skip to content

Mimir integration#42

Draft
gsanchietti wants to merge 14 commits intomainfrom
mimir-integration
Draft

Mimir integration#42
gsanchietti wants to merge 14 commits intomainfrom
mimir-integration

Conversation

@gsanchietti
Copy link
Member

@gsanchietti gsanchietti commented Feb 20, 2026

📋 Description

This pull request introduces backend support for alerting configuration and monitoring via integration with the Mimir Alertmanager. It adds new API endpoints for managing alert routing (email/webhook receivers, severity levels, exceptions), retrieving alerting configuration, and fetching current alerts.

Backend alerting API and configuration:

  • Added new API endpoints under /api/alerting for configuring alert routing, disabling alerts, retrieving alerting configuration, and listing current alerts. These endpoints enforce organization hierarchy and RBAC, and interact with the Mimir Alertmanager backend. (backend/main.go, backend/methods/alerting.go) [1] [2]
  • Introduced new data models for alerting configuration, severity levels, webhook receivers, and alert query parameters. (backend/models/alerting.go) TO BE TESTED

Other changes

  • Extended the backend configuration to support a MimirURL parameter
  • Documented the new alerting endpoints and data models inside OpenAPI

Related Issue: #[ISSUE_NUMBER]

🚀 Testing Environment

To trigger a fresh deployment of all services in the PR preview environment, comment:

update deploy

Automatic PR environments:

✅ Merge Checklist

Code Quality:

  • Backend Tests
  • Collect Tests
  • Sync Tests
  • Frontend Tests

Builds:

  • Backend Build
  • Collect Build
  • Sync Build
  • Frontend Build

@github-actions
Copy link
Contributor

🔗 Redirect URIs Added to Logto

The following redirect URIs have been automatically added to the Logto application configuration:

Redirect URIs:

  • https://my-frontend-qa-pr-42.onrender.com/login-redirect
  • https://my-proxy-qa-pr-42.onrender.com/login-redirect

Post-logout redirect URIs:

  • https://my-frontend-qa-pr-42.onrender.com/login
  • https://my-proxy-qa-pr-42.onrender.com/login

These will be automatically removed when the PR is closed or merged.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

🤖 My API structural change detected

Preview documentation

Structural change details

Added (10)

  • DELETE /api/alerting/config
  • DELETE /api/services/mimir/alertmanager/api/v2/silences/{silence_id}
  • GET /api/alerting/alerts
  • GET /api/alerting/config
  • GET /api/services/mimir/alertmanager/api/v2/alerts
  • GET /api/services/mimir/alertmanager/api/v2/silences
  • GET /api/services/mimir/alertmanager/api/v2/silences/{silence_id}
  • POST /api/alerting/config
  • POST /api/services/mimir/alertmanager/api/v2/alerts
  • POST /api/services/mimir/alertmanager/api/v2/silences
Powered by Bump.sh

@edospadoni edospadoni deployed to mimir-integration - my-mimir-qa PR #42 February 20, 2026 11:00 — with Render Active
@edospadoni edospadoni deployed to mimir-integration - my-mimir-qa PR #42 February 24, 2026 16:13 — with Render Active
@edospadoni edospadoni temporarily deployed to mimir-integration - my-collect-qa PR #42 February 24, 2026 16:13 — with Render Destroyed
@edospadoni edospadoni deployed to mimir-integration - my-mimir-qa PR #42 February 24, 2026 16:15 — with Render Active
@edospadoni edospadoni requested a deployment to mimir-integration - my-mimir-qa PR #42 February 24, 2026 16:38 — with Render In progress
@edospadoni edospadoni deployed to mimir-integration - my-mimir-qa PR #42 February 24, 2026 16:40 — with Render Active
@edospadoni edospadoni had a problem deploying to mimir-integration - my-mimir-qa PR #42 February 25, 2026 06:59 — with Render Failure
@gsanchietti
Copy link
Member Author

update deploy

@github-actions
Copy link
Contributor

🚀 Build triggers updated!

All .render-build-trigger files have been automatically updated to ensure fresh deployments of all services in the PR preview environment.

@gsanchietti
Copy link
Member Author

update deploy

2 similar comments
@gsanchietti
Copy link
Member Author

update deploy

@edospadoni
Copy link
Member

update deploy

@github-actions
Copy link
Contributor

🚀 Build triggers updated!

All .render-build-trigger files have been automatically updated to ensure fresh deployments of all services in the PR preview environment.

gsanchietti and others added 14 commits March 4, 2026 09:30
- Add authenticated metrics proxy endpoint (ANY /api/mimir/*)
  - HTTP Basic Auth: system_key + system_secret (no JWT)
  - Adds X-Scope-OrgID = organization_id for multi-tenancy
- Add MIMIR_URL config field (default: http://localhost:9009)
- Update nginx to route /mimir/ -> backend
- Add mimir/docker-compose.yml for dedicated metrics VM (Server B)
- Add OpenAPI documentation for /api/mimir/{path} endpoint
- Add user documentation (EN+IT) and operator README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- alert.py: push/resolve/silence/list alerts via collect Mimir proxy (HTTP Basic auth)
- alerting_config.py: manage alerting config via backend API (Logto OIDC auth)
- scripts/README.md: usage documentation for both scripts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants