-
Notifications
You must be signed in to change notification settings - Fork 15
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
Loki push_api lib is dropping a valid alert rules file #90
Comments
@sed-i could you give some reproduction steps? I attempted to reproduce this and it worked just fine. |
Feel free to close this issue if you're able to see the forwarded rule when curling loki's |
@sed-i still reproducible? |
That file is in the cos-config repo so it was easy to retest: $ juju deploy --channel=edge cos-configuration-k8s cos-config --config git_repo=https://github.com/canonical/cos-configuration-k8s-operator --config git_branch=main --config loki_alert_rules_path="tests/samples/loki_alert_rules/"
$ juju deploy --channel=edge loki-k8s loki
$ juju relate loki cos-config
$ curl -s 10.1.50.221:3100/loki/api/v1/rules | grep "HighPercentageError\|http\-credentials\-leaked"
- alert: HighPercentageError
- alert: http-credentials-leaked Closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While debugging cos-config I found out that the following rule never reaches loki (doesn't end up in relation data).
This sample file is taken from the official docs:
https://grafana.com/docs/loki/latest/rules/#example
The text was updated successfully, but these errors were encountered: