Comments (4)
Hi @isugimpy!
Thanks for the issue, At the beginning they were the same, I did it on purpose the change on the CRD to follow Kubernetes de-facto standards (camelCase instead of snake_case), because the prometheus/v1
spec was already using snake_case.
However the CLI accepts the CRD
too, so you can generate the Prometheus-operator Rules crd using the binary CLI on demand if you want to use it on CI.
On the next release I plan to add a validate
command so it can be used in CI and the feedback loop is faster than waiting to deploy it on a Kubernetes cluster (in case you are using the k8s controller).
Does this solve your use case? If not, I think that we should think asking the users (you included), if creating a prometheus/v2
spec would make sense and use CamelCalse
from sloth.
I think it could potentially solve my case, yes! I actually didn't realize the CLI accepted the CRD, apparently I missed that in my reading of the readme last night. Personally, I think it'd be great if the prometheus/v2
spec happened, but that's maybe not necessary at this stage. Might be better to stick with prometheus/v1
for now just to give you an opportunity to collect more info about how people are using this in a run-up to an eventual 1.0 release, and then do prometheus/v2
using that collected knowledge to coincide with 1.0.
from sloth.
Awesome! Indeed you are right! this feedback is pure gold :) So many thanks.
I'll take into account for future releases (and ask these same things to other people too), if you have other types of feedback (good or bad) I would appreciate it a lot!
Once again many thanks!
from sloth.
@isugimpy validate
command available in the latest v0.4.0 release! in case you want to use it, more info here
from sloth.
Related Issues (20)
- Please add example manifest for OpenSLO with alerting section
- Long run of slo and slo versioning HOT 2
- How can I reset the error budget remaining to 100 for 7 days from 30days HOT 3
- Option to generate sloth yaml - using 5m record rule chaining
- Sloth Alerting Rules Not Firing - Graphs Empty on Query Test HOT 1
- Help on Latency SLO definition HOT 1
- Testing an operator which manages Sloth SLOs HOT 1
- Question: Is there a way to refer totalQuery via template variable in errorQuery
- promql expr validation issues HOT 2
- Overriding the `sloth_id` doesn't work
- Feature Request: Provision SLOs from Helm install HOT 2
- Issues making Sloth work with Google Managed Prometheus HOT 1
- what does the current remaining buget -4.69e -12% mean in sloth HOT 2
- Alerting expression changes in Prometheus Alerts browser HOT 1
- 🔴 Project Status HOT 9
- Confusing definitions of errorQuery and totalQuery
- Have you considered creating 'totalQuery' as a recording rule as well?
- grafana dashboard broken for SLOs with dots in the name
- error: "generate" command failed: invalid spec, could not load with any of the supported spec types HOT 1
- How can one add a weekly maintenance window into the calculations for SLO's with sloth? HOT 1
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 sloth.