Category "prometheus"

scrape interval and evaluation interval in prometheus

My scrape interval and evaluation interval are way off from each other as whown below (15s vs 4m). When I feed metrics to the endpoint, I find that the rules ar

How to get number of nodes running in prometheus

I am trying to create an alert in which, when the number of nodes increase or decrease I'll send an alert. currently, I can get the node's count using this: cou

How to query specific value of a particular metrics using PROMQL

I have one query while performing operation on an instant vector. For ex: node_value metrics with 10minutes of data node_value{ID="1",instance="xx.xxx.xx.xx:x",

Micrometer - Prometheus Gauge displays NaN

I am trying to generate Prometheus metrics with using Micrometer.io with Spring Boot 2.0.0.RELEASE. When I am trying to expose the size of a List as Gauge, it

Prometheus for k8s multi clusters

I have 3 kubernetes clusters (prod, test, monitoring). Iam new to prometheus so i have tested it by installing it in my test environment with the helm chart: #

How to write query on the elements value in prometheus

I have a metrics called - kube_node_status_condition in which I have elements that have value 0 or 1. I need to write the query in such a way that it will only

How to get all the metrics of an instance with prometheus api?

I want to fetch the monitor host's metrics through the api of prometheus, and I need to initiate a request for each metric requested. curl http://IP:9090/api/v1

How to set Prometheus Alertmanager external URL via configuration

I'm using a vanilla Docker container to start an Alertmanager. As far as I know, I cannot provide the external URL via parameter in this case, so I have to find

password protect prometheus access [closed]

I am using prometheus to graph stats on my server. The problem is that that annybody can access the graphs from http://my.Ip.Adress:port/index

How can I setup network traffic alerts on a Linux machine using Prometheus?

I am using Prometheus to monitor network traffic on Linux machines. I see several useful metrics like node_network_receive_bytes_total, node_network_transmit_by

PrometheusOperator Helm Chart: adding labels to default rules

I need to add a label to all default rules that come with the Helm chart. I tried setting the label under commonLabels in the values file, to no avail. I also t

How to get the count of distinct values for a certain label in prometheus?

We are monitoring kafka consumers with prometheus and grafana by drawing a consuming rate curve per topic and partition. We noticed that a consumer for some par

prometheus how to change instance name

"targets": [ "10.123.175.30:9100","10.125.150.14:9100"], "labels": { "env": "dev", "job": "node", "group": "developer" } for t

Is there a way to produce an alert when an IIS site goes down using Prometheus?

I have a few IIS sites I would like to monitor using Prometheus. Specifically monitor and alert on outages. I cannot figure out how to grab a metric when a site

Silence prometheus alerts based on label value / Ignore alerts from label

tl;dr I have a label in prometheus called "ignore" with value "yes": metric_test{label1="label1",ignore="yes"} 1 I want to disable alerts for any metrics with

Is there a way to use a Prometheus counter with a holt_winters function call?

In the Prometheus documentation it describes the holt_winters() function that can be used generate a smoothed curve. However the documentation states it should

Prometheus query to return Top 5 results

I am running a diskspace used query in Prometheus and would like to return only the top 5 or 10 entries from the search result. Is there anyway I can achieve th

How to get the 95th percentile of an average in Prometheus?

So I'm aware of some percentile functions in PromQL like histogram_quantile which is used in a case like this: // Over the past 5 minutes, what's the maximum ht

CPU Load average rule for 5 minutes

We are using Prometheus-Grafana. Now we want to set alert for CPU load average of 5 minutes. We have 60 servers which have different CPU core like few machine

Prometheus and nfs storage

As per prometheus storage.md , the recommendation is not to use nfs storage as persistent volume for prometheus. But solutions like prometheus operator and ope