Category "prometheus"

How To Reduce Prometheus(Federation) Scrape Duration

I have a Prometheus federation with 2 prometheus' servers - one per Kubernetes cluster and a central to rule them all. Over time the scrape durations increase.

Multiple Targets on prometheus

I've configured prometheus on Centos, version details are follows. prometheus-2.5.0.linux-386 I've added two targets on the prometheus.yml configuration file

Dynamic prometheus labels in Gauge

I wonder if/how it's possible to add dynamic labels. I don't know the key or the quantity of the labels which I would like to add to my gauge values. What I tr

Sum over time of 1d, limit to last 7d, counter as a value

Let's suppose I have metric purchases_total. It's a counter ( which constantly increases ). I would like to make a table in Grafana which: Shows the last 7 day

Grafana: combining two queries from two prometheus exporters

I have two exporters for feeding data into prometheus - the node exporter and the elasticsearch exporter. I'm trying to combine sources from both exporters into

Use of Prometheus scrape_timeout

In the prometheus configuration I have a job with these specs: - job_name: name_of_my_job scrape_interval: 5m scrape_timeout: 30s metrics_path:

Calculating Mbps in Prometheus from cumulative total

I have a metric in Prometheus called unifi_devices_wireless_received_bytes_total, it represents the cumulative total amount of bytes a wireless device has recei

Prometheus - Match all metrics but one

How can I match all Prometheus metrics except some? E.g: {__name__!~"metric_to_discard"} Does not work, it returns Error executing query: parse error at char

Prometheus - Expression under annotations

I want to send an email alert (I have a custom template) that looks like this: Description = Disk is almost full: < 20% left Summary = Volume D: on 192.168.1

Grafana Prometheus - query processing would load too many samples into memory in query execution

I'm trying to get my query to sum over intervals in grafana but I get this error: "query processing would load too many samples into memory in query execution"

Modelling Total Requests received per hour in Prometheus and Grafana

I am trying to chart total number of requests each hour with Grafana and Prometheus counters. So I have a counter which gets incremented at every request http_

PromQL: how to change null value to an arbitrary value?

I have situation where my metric is set to 0 by a program when everything works fine. I would like to treat null value as an error value (in my case 1). The eas

Prometheus and Node Exporter architecture

I have been 3 days reading about this, even configuring a set of containers to test them, but I have doubts. I understand that the architecture of Prometheus +

How to update metric values in prometheus exporter (golang)

I'm starting to write an own prometheus exporter using golang. I think I got the basics but I don't know what to do exactly to get the value of the metric up to

Understand Prometheus Metrics Pulling

I'm still not quite understand the Prometheus Metrics Pulling after reading and trying it. Say I have a telegraf agent that sends metrics over to Prometheus e

Alertmanager not sending out alert to slack

I configured alertmanager with prometheus and according to the prometheus interface the alerts are firing. However there is not slack message showing up and I a

Query for a cache hit rate graph with prometheus

I'm using Caffeine cache with Spring Boot application. All metrics are enabled, so I have them on Prometheus and Grafana. Based on cache_gets_total metric I w

Unable to bring up prometheus using docker-compose file. Always throws the error /etc/prometheus/prometheus.yaml: no such file or directory

I have been trying to bring up a Prometheus container using docker-compose file. I have looked into the various solutions available online and none of them seem

Can we keep job section into a seperate file and is it possible to include prometheus.yml

Can we keep the job section into a separate file and is it possible to include it in prometheus.yml. We have multiple infrastructures to monitor,r so it would b

Combine Prometheus alert conditions with "or"?

I know Prometheus supports and and unless in alert statements: https://www.robustperception.io/combining-alert-conditions/ Is there support for or? I want to