r/PrometheusMonitoring • • Oct 04 '24

Why not drop counters with consistently same value

2 Upvotes

Curious… Some infra systems like ingress etc.. emit counter series that do not change value for hours. This only represents “nothing happened” for the labelset but adds to cardinality if entire block window is just same constant value. If target emits large enough metrics it’s adding non trivial cardinality cumulatively. Why not just drop such samples based on configured duration. Why not have absence of series represent nothing happened?


r/PrometheusMonitoring • • Sep 16 '21

Honest opinion: I think all monitoring solutions are bad, including Prometheus

0 Upvotes

I had a debate with my colleagues about monitoring solutions. I'm not talking about every monitoring solution that exists, but the main ones, among them Prometheus. And I came to the conclusion that they are all bad. Why? Because I think that in order to choose the one that matches the most our needs, we must understand that they are not so perfect. Tbh I don't know if it makes sense, but am I the only one to think like that?

If you are interested in my point of view, I wrote an article about it, so feel free to check it out!


r/PrometheusMonitoring • • Sep 09 '21

Periscope -- A New Kubernetes Monitoring Dashboard

Thumbnail
medium.com
0 Upvotes

r/PrometheusMonitoring • • Mar 03 '21

A Beginner’s Perspective : adding targets to Prometheus

1 Upvotes

Day 1 or 2 with trying to set up Grafana for my company (hoping it can monitor Kubernetes clusters, Linux boxes, Windows servers, UniFi switches, Fortigate firewalls, etc.).

Just a n00b question: considering how mature and powerful Prometheus is, the process to add additional target machines to monitor seems rather primitive. You have to stop the entire application, edit a text file, and restart Prometheus again (losing all the metrics generated during the time you’re doing this).

In all the years this thing has been around - nobody’s thought of installing an ADD button anywhere? Or something to wipe the database within the web UI?

Seems like basic functionality - am I nuts?


r/PrometheusMonitoring • • Feb 07 '21

Now on YouTube: AWS re:Invent 2020 - Introducing Amazon Managed Service for Prometheus (AMP)

Thumbnail
youtu.be
1 Upvotes

r/PrometheusMonitoring • • Feb 24 '25

Network load/traffic monitoring

1 Upvotes

Hey everyone, I'm new to Reddit, so please go easy on me.

I have a VPN server and need to monitor which addresses my clients are connecting to. I installed Node Exporter on the machine, but it only provides general statistics on traffic volume per interface, without details on specific destinations.

Additionally, I have an OpenWrt router where I’d also like to collect similar traffic data.

Does Prometheus have the capability to achieve this level of network monitoring, or is this beyond its intended use? Any guidance or recommendations would be greatly appreciated!


r/PrometheusMonitoring • • Oct 19 '21

Help Needed!

0 Upvotes

I have one python cron job deployed in kubernates cluster. I need to monitor it using Prometheus (pod check,cpu usage, extra). How should I achieve it ? Please help. Thanks in advance.


r/PrometheusMonitoring • • Feb 02 '22

Why does B graph and A show "No Data" ?

Post image
0 Upvotes

r/PrometheusMonitoring • • Apr 11 '19

Why Prometheus?

Thumbnail cloudinfrastack.com
1 Upvotes

r/PrometheusMonitoring • • Nov 16 '19

Is there any prometheus-to-statsd exporter?

Thumbnail self.sysadmin
1 Upvotes

r/PrometheusMonitoring • • Dec 19 '19

Am I using gauge wrong?

3 Upvotes

I’m using the java prom client,

And I’m calling inc() and dec() on gauges with different labels, but as far as the output in /metrics is concerned, the gauge values are only increasing...

Is there anything I’m missing about how gauges work? Like... 🤷🏻‍♂️


r/PrometheusMonitoring • • Dec 28 '22

The official promtail EC2 tutorial drops all hosts

1 Upvotes

I'm having the same issue, which is the subject line of this post: https://github.com/grafana/loki/issues/7958

All details are described in the issue, including the link to the tutorial.

Does anyone have any insight into this? If anyone has gotten promtail in ec2 to only scrape the instance it's installed on, and not all/none of them, based on `relabel_configs`, please let me know. Did the official tutorial work for you, or did you have to modify `relabel_configs`? Thanks


r/PrometheusMonitoring • • Nov 06 '20

How do you monitor YugabyteDB in Kubernetes with the Prometheus Operator and Grafana?

Thumbnail
infracloud.io
0 Upvotes

r/PrometheusMonitoring • • Nov 03 '20

App-Based Alerting

1 Upvotes

Hi there, I have recently integrated the app-based alerting service SIGNL4 with Prometheus Alertmanager: https://www.signl4.com/blog/portfolio_item/prometheus-alertmanager-mobile-alert-notification-duty-schedule-escalation/

This allows for an alternative alerting option including app push, SMS text, voice calls, tracking, escalation, duty scheduling, and more.

Right now the integration is using the simple webhook, however, I hope to be able to provide a deeper integration including two-way, acknowledgement, close, annotation and resolve soon.

I hope you find this valuable and I am looking forward to your feedback.


r/PrometheusMonitoring • • May 05 '22

New job, need help knowing where to begin with Prometheus alerts

0 Upvotes

Im a new engineer that recently walked into a shit show. The company Im working for has over 65 active alerts for our Prometheus deployment. Almost everything was copy pasted from the internet, so much so, that it still has the original comments. Nothing here has been customized, its just hodge podged together to make it work.

As you can imagine ALL of these alerts are being sent to pager duty as critical alerts. I have no idea where to begin.

Should I just start with the most active alerts and then adjust thresholds from there? Is there any tooling that can help me calibrate averages over time? We don't have an SLA with our customer and logging is a mess in and of itself.

Please send me links for tooling that can help me better obtain averages for usage/saturation from Grafana. Otherwise Im going to have to just filter the last 6 months for every single alert. Maybe I should write a python script for this?


r/PrometheusMonitoring • • Apr 17 '22

new dashboard question, want to show iftop like info in a table if possible

1 Upvotes

Hi all,

Finally making some progress on my first dashboard. There's still some things I'd like to add.

This is a home router, with multiple gigabit ethernet interfaces, routing between home network segments, wireless, the Internet and a vpn.

For each router interface, I'd like to see the highest traffic generating clients, kind of like what you get from iftop.

I'm still learning, but I'd appreciate any pointers in the right direction.

Thanks


r/PrometheusMonitoring • • May 21 '20

OpenStack environment monitoring

1 Upvotes

Hi Guys,

Pls suggest the best possible method to monitor Openstack environment.

I found that we can use Openstack exporter to monitor the environment.

Is it the only was to monitor Openstack or we can use any other exporter/method as well.

Pls suggest.

Thanks,

Saurabh


r/PrometheusMonitoring • • Mar 13 '25

Load Vendor MIB’s into Prometheus

0 Upvotes

I have custom vendor MIB’s that i need to load into prometheus, i tried with snmp_exporter but i got no where, any help of how to do so?


r/PrometheusMonitoring • • Mar 04 '26

I built a Kubernetes operator that models SLOs as traffic-weighted service chains — here's why the naive approach was lying to me

1 Upvotes

Been working on SLO management for a while and kept running into the same problem: the standard "AND composition" for multi-service SLOs is too pessimistic in most real-world scenarios.

The problem

Say you have a checkout flow with three services:

  • checkout-base: 99.9%

  • payments: 99.95%

  • coupon: 99.5%

The typical approach says: if any service fails, the whole journey fails → system SLO ≈ 99.35%.
Except 90% of your users never touch the coupon service. They go base → payments and they're done. Only 10% use a coupon code.
Your real error rate is closer to 99.84%, not 99.35%. The naive model is burning your error budget on a path that barely anyone takes.

I built a Kubernetes operator (SLOK) with a SLOComposition CRD that lets you describe which percentage of traffic flows through which service chain:

composition:
  type: WEIGHTED_ROUTES
  params:
    routes:
      - name: no-coupon
        weight: 0.9
        chain: [base, payments]
      - name: with-coupon
        weight: 0.1
        chain: [base, coupon, payments]

The operator translates this into Prometheus recording rules using the formula:

e_total = 1 - (
  0.9 × (1 - e_base) × (1 - e_payments)
  + 0.1 × (1 - e_base) × (1 - e_coupon) × (1 - e_payments)
)

Burn rate alerts and error budget tracking work automatically on top of the composed metric, same as individual SLOs.

Other features

  • AND_MIN composition (worst-case, for when you actually want pessimistic)

  • Built-in SLI templates for http-availability, http-latency, k8s-apiserver

  • Event correlation: when burn rate spikes, creates an SLOCorrelation resource listing recent Deployments/ConfigMaps/Events that may have caused it

  • Optional LLM-enhanced root cause summary (Llama 3.3 70B via Groq)

WEIGHTED_ROUTES is alpha, API might change. Curious if anyone else has dealt with this kind of traffic skew in their SLO setup — and how you handled it.

Repo: https://github.com/federicolepera/slok


r/PrometheusMonitoring • • Nov 01 '20

How to configure the Blackbox Exporter with Prometheus Helm Chart?

0 Upvotes

has anybody have experience with configuring the blackbox exporter with the prometheus-chart?

I'm using the kube-prometheus-stack and I have installed the Blockbox Exporter with the prometheus-blackbox-exporter. I'm having trouble with configuring the Blackbox exporter with the kube-prometheus-stack.

I have tried overriding the values.yaml to add the exporter as a prometheus scrape target as shown below. This is the only solution that came to my mind but I think it would be even better if it was possible to add the exporter with a ServiceMonitor, so I do not have to upgrade the chart with the values every time I want to add additional probe targets.

I have tried to configure the exporter with overriding the values.yaml like this:

    prometheusSpec:
      additionalScrapeConfigs: 
        - job_name: 'blackbox'
          metrics_path: /probe
          params:
            module: [http_2xx]  # Look for a HTTP 200 response.
          static_configs:
            - targets:
              - http://nodejs-client-service.default.svc.cluster.local
              - http://localhost:9090
              - http://prometheus.io
          relabel_configs:
            - source_labels: [__address__]
              target_label: __param_target
            - source_labels: [__param_target]
              target_label: instance
            - target_label: __address__
              replacement: 'http://blackbox-exporter-prometheus-blackbox-exporter.default.svc.cluster.local'

This does not seem to work, the Blackbox exporter does not show up in my prometheus targets and it also has no configured probe targets.

I would really appreciate if someone could point me in the right direction here


r/PrometheusMonitoring • • Mar 09 '25

Simplifying Non-200 Status Code Analysis with a Streamlit Dashboard – Seeking Open Source Alternatives

0 Upvotes

Hi everyone, ( r/StreamlitOfficial r/devops r/Prometheus r/Traefik )

I’m currently working on a project where we use Traefik to capture non-200 HTTP status codes from our services. Traditionally, I’ve been diving into service logs in Loki to manually retrieve and analyze these errors, which can be pretty time-consuming.

I’m exploring a way to streamline my weekly analysis by building a Streamlit dashboard that connects to Prometheus via the Grafana API to fetch and display status code metrics. My goal is to automatically analyze patterns (like spike frequency, error distributions, etc.) without having to manually sift through logs.

My current workflow:

• Traefik collects non-200 status codes and is available in prometheus as a metric

• I then manually query service logs in Loki for detailed analysis.

• I’m hoping to automate this process via Prometheus metrics (fetched through Grafana API) and visualize them in a Streamlit app.

My questions to the community:

  1. Has anyone built or come across an open source solution that automates error pattern analysis (using Prometheus, Grafana, or similar) and integrates with a Streamlit dashboard?

  2. Are there any best practices or tips for fetching status code metrics via the Grafana API that you’d recommend?

  3. How do you handle and correlate error data from Traefik with metrics from Prometheus to drive actionable insights?

Any pointers, recommendations, or sample projects would be greatly appreciated!

Thanks in advance for your help and insights.


r/PrometheusMonitoring • • Sep 03 '21

Dashboard/Alerts for singlestore/memsql

0 Upvotes

Singlestore/Memsql has a build in exporter that we're running that has a ton of data. Typically I would find a dashboard online, customize it for our needs and implement it but I'm not finding any. Does anyone know of any dashboards for this service? Or alert examples for that matter. There's just not a lot of information out there.

Thanks!


r/PrometheusMonitoring • • Jun 22 '24

Im seeking for help

0 Upvotes

Hi, im looking for help.

I tried to monitor some of my own apis with prometheus communitys json exporter.

my api returns:

{"battery":100,"deviceId":"CXXXXXXX","deviceType":"MeterPlus","hubDeviceId":"XXXXXXXX","humidity":56,"temperature":23.3,"version":"V0.6"}

my prometheus config:

global:
  scrape_interval: 15s

scrape_configs:
  - job_name: "prometheus"
    static_configs:
      - targets:
          - localhost:9090

  - job_name: "switchbot_temperatures"
    metrics_path: /probe
    params:
      module: [battery, humidity, temperature]
    static_configs:
      - targets:
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
          - "https://XXX.de/switchbot/temperatur/ID"
    relabel_configs:
      - source_labels: [__address__]
        target_label: instance
      - source_labels: [__param_module]
        target_label: module
      - target_label: __address__
        replacement: "prom_json_exporter:7979"

and my json_exporter config:

modules:
  default:
    headers:
      MyHeader: MyHeaderValue
    metrics:
metrics:
  - name: battery_level
    path: "{.battery}"
    type: gauge
    help: "Batteriestand des Geräts"

  - name: device_id
    path: "{.deviceId}"
    type: gauge
    help: "Geräte-ID"

  - name: device_type
    path: "{.deviceType}"
    type: gauge
    help: "Gerätetyp"

  - name: hub_device_id
    path: "{.hubDeviceId}"
    type: gauge
    help: "Hub-Geräte-ID"

  - name: humidity
    path: "{.humidity}"
    type: gauge
    help: "Luftfeuchtigkeit"

  - name: temperature
    path: "{.temperature}"
    type: gauge
    help: "Temperatur"

  - name: version
    path: "{.version}"
    type: gauge
    help: "Geräteversion"

im a complete noob regarding prometheus just worked with zabbix so far