Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
0 replies
16 views

I have a question regarding histograms, not built from data collected in real time. Our codebase deals with processes, all of which have a duration. I want to expose these durations as a metric. We ...
Florent Pastor's user avatar
0 votes
1 answer
53 views

Assume that I have this counter, with the server scraping these metrics every 15 seconds: vector_component_sent_events_total{component_id=~"sink.*"} If the counter increases by 30. As shown ...
W Khan's user avatar
  • 66
0 votes
0 answers
24 views

My Promtail configuration where the replace expressions in the pipeline stages are not working as expected. I’m trying to replace certain keywords in logs from the testing namespace: elevenlabs to ...
Manshu Sharma's user avatar
0 votes
0 answers
23 views

Setup explanation: I am using jmx prometheus agent, which starts with the VM as vm argument in HDFS setup. Version: 0.20.0 There is a jmx http port displaying the Mbeans as JSON. Problem: When I view ...
Kabelan E's user avatar
0 votes
1 answer
32 views

Apologies as I'm very new to Prometheus I wish to define a threshold as a constant in a rule as follows groups: - name: UI Service rules: - alert: HighErrorRate expr: calculation > {{ ...
vogomatix's user avatar
  • 5,135
1 vote
0 answers
40 views

I have a rudimentary Prometheus test environment for backfill testing, and, unfortunately I cannot seem to get it to work; all remarks are appreciated as I am sure I am making some fundamental mistake....
scotofil's user avatar
-1 votes
1 answer
60 views

I have implementation on java and Grafana/prometheus From our java service we are ingesting payload to grafana and it plots I have defined a Metric using java public class MyPayloadService { ...
Santhucool's user avatar
0 votes
0 answers
65 views

I have a set of micro services with Spring Boot running on containers, I'm using Eureka discovery and Spring Cloud API Gateway, I'm trying to set Prometheus to monitor them, so my prometheus.yml looks ...
Alfredo Morales's user avatar
1 vote
1 answer
73 views

We have two custom health groups named extended and readiness: extended: custom dependency-heavy HealthIndicators provided explicitly via application property readiness: everything except those ...
tibotka's user avatar
  • 214
0 votes
1 answer
96 views

I'm trying to use fluxcd on my kubernetes cluster, which is working perfectly fine. Now I wanted to add prometheus/grafana stack and use sops to decrypt the basic_auth part in the scrapingConfig from ...
Epi's user avatar
  • 31
0 votes
0 answers
53 views

OK so I have created a Terraform ECS cluster and In a single task definition, i have 3 containers. Backend spring boot - which exposes actuator endpoints health, info and prometheus on port 8080 ...
Tarunjeet Singh Salh's user avatar
0 votes
0 answers
28 views

I am trying to create a query that will show me the last time Windows servers were patched. count(((time() - windows_update_patch_state_time) / 86400) > 0 < 31) The above query would show how ...
Saf's user avatar
  • 102
0 votes
1 answer
62 views

I have a Grafana panel that display server states: I need to give the servers human recognizable names like: "London", "Paris", "Milan", "Berlin", "...
Alexander's user avatar
  • 1,347
-2 votes
1 answer
135 views

For a Prometheus alert I have the following expression: node_hwmon_tempcelsius{sensor="nvme_nvme0"} >= node_hwmon_temp_crit_celsius{sensor="nvme_nvme0"} repeated for nvme 0-5. ...
Goswin von Brederlow's user avatar
3 votes
1 answer
120 views

Context Java service in Kubernetes, multiple pods. Metrics exposed via Micrometer + Prometheus. Grafana dashboards use increase(...) and sum by (...) to count events in a time range. Counters are ...
user2989745's user avatar
1 vote
1 answer
96 views

https://github.com/prometheus/client_python/blob/master/prometheus_client/gc_collector.py import gc import platform from typing import Iterable from .metrics_core import CounterMetricFamily, Metric ...
slesh's user avatar
  • 2,057
0 votes
1 answer
46 views

I use micrometer + spring boot + prometheus to create, register and monitor the counters from the application, apart from counters we have timer and gauge. counter created inside application which has ...
user3917953's user avatar
-2 votes
1 answer
426 views

I have a Spring Boot application that needs to send metrics to Prometheus, but I can't use the traditional scraping approach because my application runs in an environment where Prometheus can't reach ...
PatPanda's user avatar
  • 5,418
1 vote
1 answer
228 views

I have two dependency in my pom but I keep getting the error for: java.lang.NoClassDefFoundError: io/micrometer/prometheus/PrometheusMeterRegistry I made sure the dependency for prometheus exists in ...
user30933511's user avatar
2 votes
0 answers
70 views

What did you do? I use the following code to generate some metrics data, and then push it to Prometheus through pushgateway. I use Histogram type data and design multiple buckets. However, after ...
Kante Yang's user avatar
2 votes
1 answer
131 views

I have custom recording rules set up in our cortex cluster as defined below. The source data for all of these recording rules exists for the last several months. All of the recording rules generate ...
Glen Solsberry's user avatar
0 votes
1 answer
71 views

I have 2 variables in my Grafana: namespace and service. namespace is defined as: foo: app1|app2|app3 service is defined as: list of app4, app5, app6 I've got a metric named http_request_count with ...
voipp's user avatar
  • 1,484
0 votes
0 answers
99 views

I have a Kubernetes cluster with Promtail, Loki, Grafana, and Prometheus installed. I have an nginx-ingress that generates logs in JSON. Promtail extract the fields, creates a label for http_host, and ...
aams.eam's user avatar
0 votes
1 answer
52 views

My cloudwatch_exporter happily exports metrics in AWS/* namespaces, but seems to ignore metrics in the CWAgent namespace. From looking through bug reports, it seems like this is a known but ignored ...
Matthew Bachmann's user avatar
1 vote
0 answers
54 views

I am using @Timed from micrometer-core on a few methods to capture the response time of methods in a very simple way like this - @Timed(percentiles = {0.50, 0.95, 0.99, 0.999}) It is a spring-boot ...
Abhinash Jha's user avatar
0 votes
1 answer
57 views

I enabled the Prometheus metrics plugin for an ActiveMQ Artemis broker instance. Metrics are disabled for some addresses like so: <address-settings> <address-setting match="test.#&...
beaver's user avatar
  • 17.8k
0 votes
0 answers
117 views

I am using prometheus_fastapi_instrumentator for my service. Now I am using Instrumentator().instrument(app).expose(app, include_in_schema=False) to get the basic metircs. But I want to add some ...
wltz's user avatar
  • 679
1 vote
0 answers
43 views

I am creating a Grafana dashboard to display some prometheus metrics. I was able to create a Variables in Settings, which is a list of endpoint. So in the dashboard, each graph could display specific ...
wltz's user avatar
  • 679
0 votes
0 answers
49 views

I was able to use the below query to list the top 10 CPU utilization in grafana, which works fine. However, in an alerting system, there is no alert generated. topk(10, 100 - (rate(...
Ratan Kumar's user avatar
0 votes
1 answer
190 views

I'm using Prometheus 3.4.1, set up as described here. I run it and cAdvisor this way: docker run -d --name prometheus -p 9090:9090 --group-add 988 \ -v "/etc/$p_conf":"/etc/prometheus/$...
Putnik's user avatar
  • 7,044
0 votes
1 answer
45 views

We are using the https://github.com/Labbs/github-actions-exporter at my workplace and I'm having a hard time accomplishing a query that can alert us when a particular workflow in a particular repo has ...
Brett Wagner's user avatar
  • 1,154
0 votes
1 answer
276 views

I have got grafana dashboard with panel , outputting the following metric: rate(http_requests_total{service=~"${$service}"}[5m]) where $service is a variable. One can select service from ...
voipp's user avatar
  • 1,484
0 votes
1 answer
336 views

Is it possible to put a value of a label on a Legend? I used Legend option in my query to format Name to {{__name__}} - {{env}} but I would rather have a separate column for {{env}} instead. Is it ...
a_girl's user avatar
  • 1,245
2 votes
1 answer
141 views

I want to make a pie chart where I display the current versions of available OpenShift clusters. The clusters uses remote_write to a central Thanos instance, from where we can use promql to query ...
Patrik Martinsson's user avatar
0 votes
0 answers
157 views

I'm trying to set up Prometheus with my application, following this guide from Microsoft, but data is not arriving in Prometheus. https://learn.microsoft.com/en-us/dotnet/core/diagnostics/...
Matthew Warr's user avatar
0 votes
0 answers
49 views

My code is increasing the counter app_test_metric_counter_total every 1 minute by 1. Attaching a label color with 3 possible values (green, yellow, red) I have these metrics being exposed: # HELP ...
fguillen's user avatar
  • 39.5k
0 votes
1 answer
165 views

hi i'm creating an observability stack to collect metrics of azure resources using alloy as agent and prometheus-mimir as datasource to store the metrics. for authentication i have created a service ...
tbsm4l's user avatar
  • 1
0 votes
0 answers
45 views

Suppose a composite data is like as following HealthStateJMX = { Component = ServerRuntime; HealthState = HEALTH_OK; IsCritical = true; MBean = server1; Partition = null; ReasonCode = [ ...
Nirzak's user avatar
  • 353
0 votes
0 answers
48 views

I'm using Tempo's metrics generator to extract spanmetrics and calculate the duration of each trace. However, when I use the following PromQL expression, the results differ significantly from the ...
Knut's user avatar
  • 1
0 votes
1 answer
299 views

Snippet of my alertmanager.yml file: global: smtp_smarthost: "smtp.office365.com:587" smtp_from: "[email protected]" http_config: oauth2: client_id: "...
raikumardipak's user avatar
0 votes
0 answers
81 views

I have a range of alerts marked with a 'critical' label such as - alert: query expr: sgn(sum(rate(query{kubernetes_namespace=~"ns"}[1m])) by (kubernetes_namespace)) == 0 for: 1m labels:...
davo777's user avatar
  • 466
0 votes
0 answers
102 views

I want to Configure alerts in Prometheus Alertmanager based on the group label. I have 12 servers with node-exporter installed. Each server has different project and I want to configure alerts for it ...
DarkDead's user avatar
  • 185
0 votes
0 answers
36 views

I've created a Spring boot using scheduled. I configured to prometheus collect metrics of this api, but when I try to access the /actuator url, I got error like: Error scraping target: Get "http:...
gOliveiraC's user avatar
1 vote
0 answers
34 views

I am on a FreeBSD machine, and am trying to get some basic metrics from prometheus about my memory usage. I'm new to this however and cannot find great references online. I was the equivalent metric ...
Kevin's user avatar
  • 59
0 votes
1 answer
91 views

I want to add multiple targets to a job, but they use different tokens. I don't want to configure multiple jobs. I try to do the following configuration but it doesn't work. - job_name: minio-job-...
Miacis's user avatar
  • 1
0 votes
1 answer
201 views

I would like to send metrics with exemplars using Spring Boot and Micrometer. Part of the pom.xml: <parent> <groupId>org.springframework.boot</groupId> <artifactId&...
PatPanda's user avatar
  • 5,418
0 votes
0 answers
75 views

Currently running Prometheus 3.3.0 So i have the following metrics jvm_memory_used_bytes{area="heap", environment="prod", id="PS Survivor Space", instance="my....
user2087103's user avatar
0 votes
0 answers
79 views

I'm using multiple Prometheus histogram metrics following the pattern *_duration_seconds_bucket that represent latency breakdown across my pipeline. These metrics track iterations typically taking ~...
pizza_pasta's user avatar
0 votes
0 answers
210 views

I'm migrating from Loki v2 (distributed) to Loki v3 in a Kubernetes environment. After deployment, I'm seeing two major issues: . Massive amounts of gRPC client cancellation errors: level=warn ts=2025-...
Samuel Arogbonlo's user avatar
1 vote
2 answers
483 views

I'm using this chart: https://artifacthub.io/packages/helm/prometheus-community/prometheus helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm install my-...
realworldchat's user avatar

1
2 3 4 5
141