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

Feature request: Loki alert rule tests #7655

Open
dannystaple opened this issue Nov 10, 2022 · 4 comments
Open

Feature request: Loki alert rule tests #7655

dannystaple opened this issue Nov 10, 2022 · 4 comments
Labels
component/logcli help wanted We would love help on these issues. Please come help us! type/feature Something new we should do

Comments

@dannystaple
Copy link

Is your feature request related to a problem? Please describe.
When making prometheus alert or recording rules, there's a system to test them. Making Loki alert or recording rules is frustrating since there's no clear testing system.

Describe the solution you'd like
I'd like a system for Loki that mirrors the prometheus system described at https://prometheus.io/docs/prometheus/latest/configuration/unit_testing_rules/.

Describe alternatives you've considered
Keeping things in prometheus as much as possible, so promtool test can be used. Making Loki recording rules only if possible.

Additional context
This could potentially be a loki tool, or some kind of cortextool extension?

@kavirajk kavirajk added type/feature Something new we should do component/logcli labels Nov 11, 2022
@kavirajk
Copy link
Collaborator

I love idea. Loki already have a CLI tool (logcli). Would love to see something like this integrated into LogCLI. May be LogCLI is the best place for it?

@kavirajk kavirajk added the help wanted We would love help on these issues. Please come help us! label Nov 11, 2022
@fraserdarwent
Copy link

+1 would be great to have

@superg28-dm
Copy link

+1 was just searching if this was possible

@jsolana
Copy link

jsolana commented Feb 7, 2024

+1 , any news related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/logcli help wanted We would love help on these issues. Please come help us! type/feature Something new we should do
Projects
None yet
Development

No branches or pull requests

5 participants