Comments (9)
I think I'm happy to try adding this as a possible backend to Pyrra. Actually, I've tried a couple of years back and it's just that setting up a cluster is quite involved.
If you want to contribute something I'm definitely open to it. If you can additionally figure out an easy way to create a Mimir cluster for development with Pyrra, that would be amazing.
That's great to hear! I might devote some time to this next week then and report back!
from pyrra.
You might want to take a look at two actions I've done in the past :)
https://github.com/ArthurSens/pyrra-generate-action
from pyrra.
You might want to take a look at two actions I've done in the past :)
Thanks, unfortunately this will not help in my case as far as I understand.
We need the full automation via an operator, as new ServiceLevelObjective
resources are created dynamically inside the cluster by different teams.
from pyrra.
@msvechla what you will run into is that mimir can't load anything from CRD. It expects the recording rules to be setup via its API.
You'd have to write a controller to check for the servicelevelobjectives.pyrra.dev changes and then sync to mimir if you want to go off the CRD
from pyrra.
@msvechla what you will run into is that mimir can't load anything from CRD. It expects the recording rules to be setup via its API.
You'd have to write a controller to check for the servicelevelobjectives.pyrra.dev changes and then sync to mimir if you want to go off the CRD
Thanks, I'm aware. This is is what I outlined in my post above. I wanted to check if this could be handled as part of the pyrra operator
from pyrra.
I think I'm happy to try adding this as a possible backend to Pyrra.
Actually, I've tried a couple of years back and it's just that setting up a cluster is quite involved.
If you want to contribute something I'm definitely open to it. If you can additionally figure out an easy way to create a Mimir cluster for development with Pyrra, that would be amazing.
from pyrra.
@metalmatze mimir has a small deployment example for helm
https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/small.yaml
I'd just shrink the sizes even more though
I use this with orbstack to test mimir.. If you have a branch where you start this i'm happy to write up a doc to get mimir/pyrra setup on a 1 node test cluster you should be able to setup on your laptop
from pyrra.
I started playing around a little bit today on a branch: main...msvechla:pyrra:mimir_support
It's still very WIP, I just wanted to get something working to find a possible implementation path.
Unfortunately I did not find a good Mimir api client for go. I used https://github.com/grafana/mimir/tree/main/pkg/mimirtool/client for now, but this requires us to replace the prometheus module dependency with the mimir fork, which is probably not what we want. Do you have any thoughts on this? We could also just write our own small client for the rules API.
from pyrra.
@metalmatze I created a draft PR #1221 that adds support for Mimir, I think we can discuss the details there.
Regarding Grafana Alerting support I also played around a bit, but this will take a little bit more effort.
We can provision AlertingRules
via the grafanaalertrulegroups
of the Grafana Operator.
However we can not easily translate the PrometheusRules
, as conditions are specified differently with Grafana Alerting, which would require us to generate the rules in an intermediary format, so they can easily be converted to Prometheus or Grafana rules.
The PR I opened only focuses on Mimir support for now, so we can create a separate PR or discussion for Grafana Alerting
from pyrra.
Related Issues (20)
- Grafana Dashboard HOT 5
- Feature: Allow customisation of warning/critical alert levels HOT 2
- [Feature] Link Grafana Dashboard to Pyrra equivalent HOT 1
- Environment variables support in Pyrra HOT 1
- SLO dependencies / levels / hierarchy HOT 3
- Custom PropagationLabelsPrefix HOT 2
- No data Budget and Availability HOT 1
- Doubt - Error Budget
- Issue when showing some SLOs (white screen) HOT 3
- Pyrra causes instability of Prometheus HOT 1
- Fix typo in Kubernetes example readme HOT 1
- Allow providing an error rate query rather than a error count query HOT 1
- ConfigMapMode not working with option --config-map-mode=true
- Webhook Panic on Unexpected Parser Expression HOT 2
- Allow Prometheus Rules to Publish Rules to Azure Managed Prometheus HOT 3
- Latency format incorrect when using milliseconds HOT 1
- Latency SLOs - Duplicated "p100" percentile in duration graph (UI) HOT 2
- Duration graph legend shows inaccurate value when duration is greater than 1 second
- No data and generic rules not created
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrra.