Skip to content
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

Add alert exclusion prerequisites #115

Merged
merged 3 commits into from
Jan 9, 2023

Conversation

Dasomeone
Copy link
Member

This PR adds an additional field to the ConfigurationEntry struct, allowing for Alert overrides to be defined in the .lint config files.

The related lint exclusion logic will be contained entirely within Mixtool for the time being, as that is where the alert rules are enforced.

Additionally the .gitignore file has been updated to ignore standard IntelliJ IDEA artefacts

The added `Alert` filed to `ConfigurationEntry` is a prerequisite for letting Mixtool exclude Prometheus alerts from linting. The required logic for exclusions are contained within Mixtool.
@Dasomeone Dasomeone requested a review from rgeyer January 9, 2023 13:46
@Dasomeone Dasomeone self-assigned this Jan 9, 2023
@Dasomeone Dasomeone changed the title Dasomeone/add alert lint exclusion prerequisites Add alert exclusion prerequisites Jan 9, 2023
Dasomeone added a commit to Dasomeone/mixtool that referenced this pull request Jan 9, 2023
Copy link
Contributor

@mshahzeb mshahzeb left a comment

Choose a reason for hiding this comment

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

LGTM!

.gitignore Outdated Show resolved Hide resolved
@Dasomeone Dasomeone merged commit d88c963 into main Jan 9, 2023
@Dasomeone Dasomeone deleted the dasomeone/add_alert_lint_exclusion_prerequisites branch January 9, 2023 15:40
rgeyer pushed a commit to monitoring-mixins/mixtool that referenced this pull request Jan 10, 2023
* Added idea IDE folder to gitignore

* Added alert rule exclusion support

Requires grafana/dashboard-linter#115

* Tidied up go.mod

Tidied with compatibility with Go 1.17

* Updated to use latest dashboard-linter

Changes include required prerequisites for alert exclusions

* Updated golangci-lint version

* Addressed PR comments

* Added missing go.sum entry for sirupsen/logrus

* Addressed comments pt. 2
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.

None yet

2 participants