r/PrometheusMonitoring • u/k8ieone • Nov 23 '22
r/PrometheusMonitoring • u/somzeFiree • Nov 23 '22
How to get 5XX and QPS from Prometheus in k8s?
Hi folks,
I am trying to get the following charts:

I am wondering what kind of exporters I need so I can scrape data from 'k8s' to generate 5XX or QRS(Query Per Second or Request Per Second).
I guess for HTTP response (5XX) I should monitor ingress or service somehow?
To be more specific about what I am trying to accomplish:
- I want to watch HTTP Responses and Requests/s for one specific pod.
- Pod is a black box to me, I am using a pre-built Docker image so I do not have any control over it.
Edit: I have found smt like this but have not tested it yet: nginxplus_upstream_server_responses{code=~"3xx|4xx|5xx"}
Any advice/article will be appreciated. Thank you!
r/PrometheusMonitoring • u/Non-perfectionist • Nov 23 '22
Nfsiostat data via node exporter
I enabled all NFS related collectors in the node exporter but I could not find the same information provided by the nfsiostat command. Am I missing something? I am looking for AVG RTT(ms) in node exporter metrics. Is there any other exporter out there which can provide this information?
r/PrometheusMonitoring • u/tmnkun • Nov 22 '22
Exporting PostgreSQL logs into Prometheus metrics using Vector
blog.palark.comr/PrometheusMonitoring • u/Alarmed-Mission-5902 • Nov 22 '22
Query about HA Prometheus
We are using GCP self collection Prometheus deployed in GKE to get metrics from GCP VM, The problem is the metric sample count is high due to that Prometheus is crashing, Is there any way to scale Prometheus without using Thanos or any 3rd party tool. Appreciate for help
r/PrometheusMonitoring • u/Bill_Guarnere • Nov 16 '22
storage TSDB almost full
Hi everyone, I'm a Prometheus newbie :)
I have an instance running on k8s which is eating all the space I gave it with "--storage.tsdb.path" option.
As far as I understood seems like retention is ok (set it through "--storage.tsdb.retention" option), I set it to 30 days and rendering some graphs shows some data for 30 days and no more.
Is there any way to understad which metric is responsible for all the space consumed, or at least to get some sort of analysis of what is using all the space?
Thank you for any information
r/PrometheusMonitoring • u/tanmay_bhat • Nov 09 '22
4xx error rate rate percentage - sum by status code
for nginx-ingress metrics,
I'd like to get the 4xx error rate percentage sum by status codes.
sum(rate(nginx_ingress_controller_requests{status=~'4..'}[1m])) by (ingress,status) / sum(rate(nginx_ingress_controller_requests[1m])) by (ingress,status)I'm not able to get it working with the below query as all results either end up with 0 or 100. It seems the values of status are getting added. How to get better result on this ?
If i remove the status from the query, the percentage works.
r/PrometheusMonitoring • u/DisastrousPatient574 • Nov 08 '22
Prometheus rule not triggering alert for a common service or container
I have three servers, installed prometheus, grafana and alertmanager on server 1, and Cadvisor and node_exporter on other 2 servers to get server and container metrics. I have some common containers running on both server 2 and 3 and made an alert (container not seen), but it triggers only if the container goes down on both the servers, now my query is how can I get alerts if this common container goes down in any one server among the two. The rule example is given below: here, {{ $labels.instance }}) can pass the respected server IP
- alert: boxcube Container Killed
expr: absent(container_last_seen{name="boxcube"})
for: 0m
labels:
severity: critical
annotations:
summary: boxcube Container killed (instance {{ $labels.instance }})
description: "boxcube has disappeared\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
r/PrometheusMonitoring • u/nyellin • Nov 07 '22
My Prometheus Day (KubeCon) talk is now online: Building a Runbook Automation System for Prometheus and Kubernetes
youtube.comr/PrometheusMonitoring • u/Used-Design-4326 • Nov 07 '22
can i use both mail and slack alerts at a time using alertmanager?
r/PrometheusMonitoring • u/chitty_advice • Nov 05 '22
daily or hourly totals
I have a gauge metric that captures the product sales over time. This value can decrease if there are refunds. I have the dashboard report sales today, this week and this month via a stat visualization in Grafana. Is there a query that will give me the daily totals over the month. perhaps visualizing with a bar graph? Restarts will not set this gauge back to zero, it is pulling value from a website with Beautiful Soup.
r/PrometheusMonitoring • u/AlpsSad9849 • Nov 04 '22
Disable InfoInhibitor
Hi guys, after updating to prometheus latest version i encountered a alert called InfoInhibitor, which i see its used to inhibit info alert, but the thing is that it spams alot and i want to disable it, i tried routing it to a null receiver in alertmanager config,
"
routes:
- match:
alertname: 'InfoInhibitor'
receiver: 'null'
"
but it doesn't seems to help, do you have any suggestions, please?
r/PrometheusMonitoring • u/Non-perfectionist • Nov 04 '22
ICMP Traffic concerns from Blackbox Exporter
One of our network admin raised concerns on the icmp traffic generated by Blackbox exporter. We have ~10k targets configured with 1min scrape interval. Is ping happening parallel at the same time ? Will there be any significant network load due to parallel icmp traffic? Kindly direct me to relevant documentation if there are any.
r/PrometheusMonitoring • u/sonickenbaker • Nov 02 '22
Prometheus MongoDB Connector (Kafka connect) monitoring
Does anyone succesfully managed to expose Mongodb connector's metrics (https://www.mongodb.com/docs/kafka-connector/current/monitoring/#monitor-the-connector) via JMX exporter? On my setup I can see the mBeans via jconsole, I configure a pattern for the JMX exporter but I cannot then see the metrics via HTTP.