Category "prometheus"

How to calculate containers' cpu usage in kubernetes with prometheus as monitoring?

I want to calculate the cpu usage of all pods in a kubernetes cluster. I found two metrics in prometheus may be useful: container_cpu_usage_seconds_total: Cumu

Prometheus increase not handling process restarts

I am trying to figure out the behavior of Prometheus' increase() querying function with process restarts. When there is a process restart within a 2m interval

Azure policies(gatekeeper) monitoring on AKS via Prometheus and Grafana

I have enabled azure policies via terraform and applied to AKS cluster. I can see pods are deployed, up and running. I applied in-built initiative here too with

Prometheus rule variable?

I have a Prometheus Federator with multiple targets. I need to customize its rules (thresholds) for eventually each target. Is there a way to set a have a rule

Prometheus Alert Manager - CPU high not alerting

I configured prometheus alert manager, but he is not alerting when the CPU of one of my server goes to 99% of usage. This is the alert : - alert: HostHighCpuLoa

prometheus dynamic metrics_path

Prometheus allows me to dynamically load targets with file_sd_config from a .json file like this #prometheus.yaml - job_name: 'kube-metrics' file_sd_configs:

Compare 2 metrics in Prometheus

I'm new in prometheus, need help. I have custom metric on my 2 servers (just shows version of application): app_version{plant="dev",env="demo"} 55.119 app_ver

Prometheus - debugging slow query

The following query is taking more than 1 min, and timing out. It's made from Grafana: /grafana/api/datasources/proxy/2/api/v1/query_range? query=rate(rmq_pu

Use conditional operator in Prometheus alert rules to set severity

I would like to use the conditional operator into the Prometheus alert.rules definition to set a specific severity. For instance, if the environment is producti

Prometheus create label from metric label

We are running the node-exporter in containers. To quickly identify on which host each node-exporter is running, I created a metric that looks like this: host{h

Prometheus scrape config for multiple metric endpoints per pod

We have a Kubernetes Pod which provides multiple metric endpoints (:3093/metrics and :9113/metrics), but it also has an port which doesn't provide any metric (:

How to configure prometheus with alertmanager?

docker-compose.yml: This is the docker-compose to run the prometheus, node-exporter and alert-manager service. All the services are running great. Even the h

Grafana chained variables in repeating rows

I have a dashboard that uses two variables: $clients is a static list and $running_sessions is the result of a MySql query that uses $clients (something like s

Why endorser_proposals_recieved (Hyperledger fabric peer-metric) is giving different values at different peers?

We are using Hyperledger fabric 2.2.3 with 3 organizations 2 peers each, a total 6 endorsing peers,3 orderers, and using the Prometheus tool for monitoring. usi

Prometheus query in Grafana with query variable

My Grafana panel query is sum(kube_pod_container_resource_limits_cpu_cores{node=~"$workers"}) / sum(kube_node_status_allocatable_cpu_cores{node=~"$workers"}) T

Use Prometheus in .net core application

I am doing POC using Prometheus in .net core app. I did not found sufficient information on Prometheus website to get started , I have following question if som

promQL how to divide node_load by number of cores

I have load. node_load1 node_load1{group="FTP",instance="10.41.48.100:9100",job="node"} 0.1 node_load1{group="Prometheus",instance="localhost:9100",job="node"}

Prometheus not sending alarms to Alertmanager

although I can see my alarms on prometheus, I cannot view alarms via alertmanager, although their status is Firing. My settings; prometheus.yml config # Alert

Match by exported instance in Grafana and Prometheus

I'm working in Grafana and Prometheus and I have Pushgateway exporting some stats for me. In Grafana, I am trying to display these results per machine. My jobs

Filter prometheus gauge metrics by value range

Prometheus does support binary comparison operators between an instant vector and a scalar. E.g. memory_usage_bytes > 1024. But is it possible to query a gau