8000 feat(api): Add alert path prefix as configuration field by deadlycoconuts · Pull Request #648 · caraml-dev/merlin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(api): Add alert path prefix as configuration field #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

deadlycoconuts
Copy link
Contributor
@deadlycoconuts deadlycoconuts commented May 5, 2025

Description

This PR simply introduces a new configuration field for the Merlin API server to make the alert path prefix (currently hardcoded as alerts/merlin) into a configurable field. This allows for more customisable paths to be used when setting up alerts using the current GitOps approach.

Modifications

  • api/config/config.go - Added a new configuration field AlertPathPrefix
  • api/service/model_endpoint_alert_service.go - Made changes to the current way an alert file path is generated

Tests

Checklist

  • Added PR label
  • Added unit test, integration, and/or e2e tests
  • Tested locally
  • Updated documentation
  • Update Swagger spec if the PR introduce API changes
  • Regenerated Golang and Python client if the PR introduces API changes

Release Notes

NONE

@deadlycoconuts deadlycoconuts self-assigned this May 5, 2025
@deadlycoconuts deadlycoconuts added the enhancement New feature or request label May 5, 2025
@deadlycoconuts deadlycoconuts marked this pull request as ready for review May 5, 2025 20:00
Copy link
Contributor
@bthari bthari left a comment

Choose a reason for hiding this comment

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

Thank you for adding the config! LGTM 🚀

8000
@deadlycoconuts
Copy link
Contributor Author

Thanks for the quick approval! Merging this now!

@deadlycoconuts deadlycoconuts merged commit 256b2f9 into main May 7, 2025
34 checks passed
@deadlycoconuts deadlycoconuts deleted the add_alert_path_prefix_config branch May 7, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0