Comments (5)
Hi Adam - what version of jsonnet are you using? Does make lint
also fail?
We use jsonnet 0.10 in the CI and it works...
from kubernetes-mixin.
I'm on the same jsonnet version.
$ jsonnet -version
Jsonnet commandline interpreter v0.10.0
$ make lint
jsonnet -S lib/alerts.jsonnet > prometheus_alerts.yaml
find . -name 'vendor' -prune -o -name '*.libsonnet' -print -o -name '*.jsonnet' -print | \
while read f; do \
jsonnet fmt -n 2 --max-blank-lines 2 --string-style s --comment-style s "$f" | diff -u "$f" -; \
done
promtool check rules prometheus_rules.yaml
Checking prometheus_rules.yaml
SUCCESS: 29 rules found
promtool check rules prometheus_alerts.yaml
Checking prometheus_alerts.yaml
SUCCESS: 15 rules found
The generated yaml has quotes around it, so maybe this was my fault.
- "expr": |
sum(irate(node_network_receive_drop{job="default/node-exporter",device="eth0"}[1m])) +
sum(irate(node_network_transmit_drop{job="default/node-exporter",device="eth0"}[1m]))
"record": ":node_net_saturation:sum_irate"
from kubernetes-mixin.
Weird, would be good to get to the bottom of what happened. Perhaps the original set was generated with a different version of jsonnet? Feel free to close if you can't reproduce.
from kubernetes-mixin.
Oh. I know the issue.
These rules are vendored into coreos/prometheus-operator, which is what I'm using. To make some edits locally I rewrote that ConfigMap
from the /rules
html, which doesn't quote the recording rules.
Copying the above will throw this error.
from kubernetes-mixin.
I'm going to see what the prometheus folks say. prometheus/prometheus#4158
from kubernetes-mixin.
Related Issues (20)
- Add support for joining labels into alerts from kube_XXX_labels metrics HOT 2
- overwrite the default "cluster" variable query HOT 1
- Memory quota panel: memory limits % must include cache
- Customize generated alerts by cluster
- Migrate apiserver request latency metric to `apiserver_request_sli_duration_seconds` HOT 3
- Potentially incorrect aggregation on node_namespace_pod_container:container_memory_working_set_bytes HOT 2
- KubeletTooManyPods should not be info.
- KubeAPIDown not working as intended if targets a set of clusters
- Two Questions about diskDeviceSelector
- Make KubeCPUOvercommit indulgent with cluster autoscaler
- KubeDeploymentReplicasMismatch does not alert on mismatched replicaset HOT 1
- KubePodNotReady alert doesn't actually check pod readiness
- How to disable clusterLabel?
- na
- Add cluster label to CPUThrottling alert when showMultiCluster enabled
- Some rules won't work properly on m3db/prometheus and will only work on victoriametrics
- Design doc URL is broken HOT 4
- Use generated grafonnet library
- Clusterlabel support for Kubernetes alerts
- Grafana angular deprecation in grafana 11 HOT 17
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 kubernetes-mixin.