Category "prometheus"

Loki Ruler not sending alerts to alert Manager

I have loki + grafana + prometheus running in EKS using official helm charts. I want to send alerts based on error log messages and for that i'm trying to use t

aggregate of <aggregation>_over_time() in prometheus?

Prometheus has functions to e.g. get the max of a given range of data points or min or ... See the documentation for more info. Now when I want min(data) and m

Can I find the timestamp of the last value change

Given a time series, is it possible to find the timestamp of the last value change? For example, a cron job runs every night. It first runs an rsync job, and l

How to set Prometheus Alertmanager externalURL and generatorURL via configuration

How to set externalURL and generatorURL? Is it possible to set the URL via configuration file or environment variable? Who can help me?

What is the maximum scrape_interval in Prometheus

I used Prometheus to measure business metrics like: # HELP items_waiting_total Total number of items in a queue # TYPE items_waiting_total gauge items_waiting_

How to relabel address with it's current value and a label

In a json config file (referred to from file_sd_configs ) I have entries such as [ ... "targets": [ "10.123.456.789"], "labels": { "node_exporter_port

Why Alertmanager failed to send alerts to slack

I have created alerts, that fires and can be seen in Alertmanager. So previously I was able to get notifications to the Slack channel. I don't know what caused

How to run Prometheus monitoring with 1GB of RAM?

Having tried all kinds of flags to avoid keeping much data on the RAM has not succeeded. Even if I restrict "storage.local.memory-chunks" and also "chunks to pe

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