Category "prometheus"

How can I query prometheus data greater than value but include all data in series vector?

I think this image says it all I want to query a series in Prometheus with values greater than .5 but include the lower values in the series so the chart is co

Pushing metrics data to Prometheus

I am configuring Prometheus to access Spring boot metrics data. For some of the metrics, Prometheus's pull mechanism is ok, but for some custom metrics I prefer

How to setup basic auth for Prometheus deployed on K8s cluster using yamls?

How to setup basic auth for Prometheus deployed on K8s cluster using yamls?? I was able to achieve this easily when Prometheus was deployed on a host locally us

Prometheus metric value compared to "crawl Time" in grafana

I have metric that exports "current time" from the device in UNIX time, now I would like to compare that time with "crawling time", but I seem to have some prob

Prometheus instant vector vs range vector

There's something I still dont understand about instant vector and range vectors Instant vector - a set of time series containing a single sample for each tim

Add custom labels to default spring boot actuator metrics

I'm currently working on a Spring boot (webflux) project where we have exposed metrics of our application on /actuator/prometheus endpoint using spring boot act

How to add bearer token for prometheus job

I have started working on the Prometheus for my microservices. I was able to achieve it initially. Now, it's time to push the actuator endpoint under the spring

How to update MicroMeter gauge according to labels

I use MicroMeter gauges in a Spring Boot 2 application to track statuses of objects. On status change, the statusArrived() method is called. This function shoul

Prometheus query to alert if something happens x times within a time period?

I'm working on a query that should alert if the disk queue length gets above 2 frequently. Say, if it happens 10 times over a 1d period. I can't seem to get my

Set different maximum values for each field in the Bar Gauge | Grafana

I was trying to set up a dashboard so that I could monitor the number of messages within certain queues. The problem is that in order to create a suitable alert

Prometheus alerting rule not detecting first time metric increase

I have one counter metric error_in_execution. Whenever the error appears counter.inc(); called. I have the following alert expression that triggers when the cou

Sum of a Prometheus metric over the current day

I want to have a metric that shows the total incoming bytes on an interface for the day so far. The closest I can get is having to specify the date in the query

Prometheus counters: How to get current value with golang client?

I am using counters to count the number of requests. Is there any way to get current value of a prometheus counter? My aim is to reuse existing counter without

prometheus rate on series by regex

I am using the following query to get some metrics based on the name: {__name__=~"bus_listener.+_processed"} There are multiple metrics that match this name

How to correctly scrape and query metrics in Prometheus every hour

I would like Prometheus to scrape metrics every hour and display these hourly scrape events in a table in a Grafana dashboard. I have the global scrape interval

How to display only positive change in Grafana graph?

I am using kube-stats-metrics with kube_pod_container_status_last_terminated_reason as a gauge. The gauge can be reporter for few minutes even hours. But I just

Time series from Prometheus source: how to set nulls as zero?

Working in Docker Grafana 8.1.5. Using time series graph, I'm plotting a Prometheus Counter source (that has one label) as a time series (by label), and need to

Docker Prometheus not starting

just on this page described, i'am trying to start on my windows docker prom/prometheus with git-bash: docker run \ -p 9090:9090 \ -v /C:/Users/Bob/serv

Alerts firing on Prometheus but not on Alertmanager

I can't seem to find out why Alertmanager is not getting alerts from Prometheus. I would appreciate a swift assistance on this challenge. I'm fairly new with us

Calculate Max in value with prometheus

Since I am prometheus-newbie I do not know how to express the question: "What is the maximum number of messages which have been processed per second during the