Comments (6)
Hi @youpai, thanks for reporting this issue.
I tested the initial query, and I got the following error:
Error executing query: parse error at char 107: range specification must be preceded by a metric selector, but follows a *promql.AggregateExpr instead
Regarding this message, I think min_over_time does not support subquery.
Adding ':' does not work either, on my Prometheus instance.
What version of Prometheus are you using ?
from awesome-prometheus-alerts.
The version of Prometheus is 2.16.0。
Maybe there are some differences between different versions,but I think min_over_time does support subquery,the ref "https://prometheus.io/blog/2019/01/28/subquery-support/"
from awesome-prometheus-alerts.
Ok, my Prometheus server was too old then.
I'll prepare a PR ;)
from awesome-prometheus-alerts.
Hi! I think this expression query still needs some love. We just began using it and we're getting false positives. That means, short-lived pods that go trough the following phases: Pending, Running, Succeeded, Failed, Unknown get marked as unhealthy even if they did their work. Example:
trafficdatalakeingestionespdrivingsensor-12de660039ef47959b6b90046c978ff2 0/1 Pending 0 0s
trafficdatalakeingestionespdrivingsensor-12de660039ef47959b6b90046c978ff2 0/1 ContainerCreating 0 1s
trafficdatalakeingestionespdrivingsensor-12de660039ef47959b6b90046c978ff2 1/1 Running 0 3s
trafficdatalakeingestionespdrivingsensor-12de660039ef47959b6b90046c978ff2 0/1 Completed 0 16s
trafficdatalakeingestionespdrivingsensor-12de660039ef47959b6b90046c978ff2 0/1 Terminating 0 17s
From: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase
Failed | All containers in the Pod have terminated, and at least one container has terminated in failure. That is, the container either exited with non-zero status or was terminated by the system.
In our case they are terminated by the system, but everything was correct. I'll be thinking on a better expression but if you have any ideas I'm all eyes!
from awesome-prometheus-alerts.
@lgg42 I'm running into this too. I have gitlab CI runners and unit tests running on my cluster and they all trigger this because they are short lived. Did you ever come up with a better query?
from awesome-prometheus-alerts.
@djhoese Nope, hadn't the time yet. But is good to see I'm not the only one, sorry you're also suffering it 🙃
from awesome-prometheus-alerts.
Related Issues (20)
- 7.2.1. Loki process too many restarts label HOT 1
- Make alert description suffix customizable
- Invalid PostgresqlTooManyConnections HOT 1
- KubernetesNodeOutOfPodCapacity fails when multiple replicas of kube-state-metrics
- Broken on iOS?
- Adjust "Kubernetes Volume full in four days" query? HOT 2
- Node-exporter option has been renamed HOT 1
- Rule "Host RAID array got inactive" has misleading description HOT 1
- flux alerts HOT 3
- changed Kernel info breaks querie(s) HOT 1
- Rule "Host out of inodes" triggers false positive with FAT16 on FreeBSD HOT 6
- Host Memory underutilized uses a `rate` on the `node_memory_MemAvailable_bytes` gauge
- Need to fix use of deprecated apiserver_request_latencies_bucket metric HOT 1
- HostFilesystemDeviceError should use `for: 2m` HOT 1
- HostPhysicalComponentTooHot throws "many-to-many matching not allowed: matching labels must be unique on one side" HOT 2
- RedisTooManyMasters in a multi-cluster setup HOT 2
- "Haproxy HTTP Slowing Down" uses max total time HOT 1
- How to do downtime monitoring for linux HOT 1
- Update Minio metric HOT 1
- PrometheusTargetMissingWithWarmupTime check issue with multiple jobs on the same target HOT 4
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 awesome-prometheus-alerts.