Questions tagged [prometheus]

The Prometheus monitoring system, including the server, alertmanager, push gateway, exporters, client libraries and other components.

Prometheus is a go-based open-source monitoring system inspired by Google's approach to monitoring.

Prometheus itself is a time-series storage server that periodically pulls metrics from monitored entities. These metrics can then be queried and alerted-upon using simple query and alert languages.

Prometheus comes with a suite of supporting tools like alertmanager, exporters and client libraries, designed to work together in providing a highly scalable and complete monitoring solution. Metric visualizations is usually done with Grafana, which seamlessly connects with Prometheus.

Prometheus's official site.

Read more about Prometheus's approach here:

  • This article explains Prometheus metric gathering approach for beginners.

  • This chapter from the online book "Site Reliability Engineering" describes Google's monitoring system Borgmon. Prometheus is mentioned in this chapter and was designed with Google's approach in mind.

6591 questions
2
votes
2 answers

Metrics not visible in prometheus

I am using elastic search exporter to pull elastic search metrics to prometheus. I installed the helm chart and could see the metrics on http://127.0.0.1:9108/metrics with port forwarding. But i don't see any metrics coming to prometheus. Can…
2
votes
1 answer

Kubernetes Prometheus metric for HPA (horizontal pod autoscaler) `currentCPUUtilizationPercentage`?

On a Kubernetes cluster with CoreOS Prometheus Operator scraping all standard cluster metrics, what Prometheus metric would show me the currentCPUUtilizationPercentage value for a simple HPA (horizontal pod autoscaler)? If I setup a simple hpa…
clay
  • 18,138
  • 28
  • 107
  • 192
2
votes
0 answers

Request count sum for last 1 hour

I have a use case where I want to set the alerts from grafana on hourly basis. In this hourly alert I want to get the request count for each API in last 1 hour and collect them and sent along with the alert. I tried different combination of…
2
votes
1 answer

Monitoring Spark 3 applications with Prometheus

Have some very basic questions around the pull mechanism with metrics and how Spark 3 applications can be monitored using Prometheus: Does the PrometheusServlet sink supported with Spark-3 contain all the metrics since the application start time?…
soontobeared
  • 441
  • 4
  • 9
  • 30
2
votes
1 answer

Grafana alert / value equals zero

I have the prometheus query = sum by (job) (rate(http_requests_total[5m])) Could you tell how can I create alert in grafana when the value is equal zero (longer than given time) I cannot find proper function
user3740179
  • 133
  • 10
2
votes
1 answer

Throughput calculation in Prometheus metrics from post_seconds_count, post_seconds_sum and post_seconds_max

I was trying to build dashboard in Grafana for different API( java application). we started exporting the metrics to Prometheus by using these dependency. val prometheus_scdw = "io.prometheus" % "simpleclient_dropwizard" % "0.0.23" val…
Vinod
  • 515
  • 4
  • 11
2
votes
2 answers

Can't get Prometheus to install on Kubernetes for Gitlab

bare in mind that I'm new to Kubernetes. I'm trying to integrate our existing K8 cluster in GitLab. I have added the cluster to gitlab and I can see projects are fetched. However under Health tab I see that I need to install Prometheus. After…
CyberProdigy
  • 737
  • 9
  • 20
2
votes
0 answers

Export kubernetes custom metrics with Prometheus for all namespaces

I have a k8s cluster if prometheus-operator (namespace monitoring) and prometheus-adapter installed using helm charts. I can scrape metrics from other namespace (say rabbitmq) with prometheus-operator and prometheus-adapter can get custom…
2
votes
3 answers

Prometheus: Error: 404, response body: 404 page not found when trying to push metrics using PushGateway

I am trying to push metrics using PushGateway, and i get the below error while pushing the metrics: java.io.IOException: Response code from http://169.41.73.106:30000/metrics/job/pushgateway was 404, response body: 404 page not found at…
S.A.Norton Stanley
  • 1,833
  • 3
  • 23
  • 37
2
votes
1 answer

Jmeter failed to start with the Prometheus JMX agent when run not from $JMETER_HOME/bin

Trying configure Prometheus JMX agent for Jmeter but faced following issue - when I start Jmeter outside of $JMETER_HOME/bin folder - it fails with an error: java.lang.Throwable: Could not access null/lib at…
Sergey Yampol
  • 55
  • 1
  • 7
2
votes
1 answer

Prometheus adapter - not able to get data from external metrics

I am not able to fetch items by running this command: kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/default/rabbitmq_queue_messages_ready" | jq As you can see in below output items is an empty array: { "kind":…
RNK
  • 5,582
  • 11
  • 65
  • 133
2
votes
1 answer

How to calculate absent_over_time with label dimensional?

I have a counter, for example, user_actions with label user_id. I want to get alert, when user_actions is disappeared for any user_id. Literally, I need absent_over_time(user_actions[60m]), but taking into account user_id label.
Denis
  • 3,595
  • 12
  • 52
  • 86
2
votes
1 answer

Azure Kubernetes service Metrics Vs Prometheus Metrics

Do we have any comparison between list of metrics available in Azure Kubernetes service and Prometheus, just wanted to know what kind of additional metrics that can be acquired by enabling prometheus scraping. There is no additional information…
Dilly B
  • 1,280
  • 2
  • 11
  • 15
2
votes
1 answer

Unable to reload Prometheus configuration

I've started Prometheus service with - docker service create --replicas 1 --name my-prometheus \ --mount type=bind,source=/tmp/prometheus.yml,destination=/etc/prometheus/prometheus.yml \ --publish published=9090,target=9090,protocol=tcp \ …
Alpha
  • 13,320
  • 27
  • 96
  • 163
2
votes
1 answer

Is anybody using $__interval for range selection over fixed values?

In PromQL we use range vector selectors to get range vectors for functions like rate(). Grafana provides the dynamic variable $__interval and it is used like this: sum(rate(my_metric{foo="bar"}[$__interval])) It's value is an approximation so that…
trallnag
  • 2,041
  • 1
  • 17
  • 33
1 2 3
99
100