r/PrometheusMonitoring • • Sep 04 '25

Question: Prometheus Internal or External to K8s Clusters?

9 Upvotes

Hi there,

For some background I'm getting familiar with Prometheus, having a background in Grafana + Collectd + Carbon/Graphite. I've finished the book Prometheus Up & Running (2nd Edition), and have I guess a question about deployments with Kubernetes clusters.

As best I can tell, the community and book seems to _love_ just throwing Prometheus in cluster. The Kube Prometheus operator probably lets you get up and running quickly, but just putting everything in cluster. I already had Grafana outside of it, and so I've been doing it manually and externally (and want to monitor things other than just Kubernetes nodes), and it is really tedious to get it to work externally, because of the need to reach in to the cluster, so every specific set of metrics needs tokens, and then an ingress, etc...

One of the main concerns I have with putting it internal to the cluster is that we try and keep our K8s stateless, and ephemeral. Also having historical data is useful, so if every time we blow away the cluster we lose everything seems not great. To say nothing about having to maintain Grafana dashboards in a per cluster environment.

The book discusses Federation, but it says that it's only for aggregated metrics, and it gives a host of reasons including race conditions, data volume, network traffic, for not doing using it, etc... It also mentions remote_write but presumably has many of the same concerns.

A bit more context, I'm exploring this in two cases and for a few reasons:

  1. For my home lab, a 9 to 12 node k8s cluster.

  2. For our clusters at work, we use Datadog now, but I think prometheus might be useful for a couple of reasons in addition to DD.

The reasons I think it would be useful for work is:

  1. The first is that we would like a back up solution in case DD is down.

  2. The second is that I believe there are a number of tools where custom metrics can be used in K8s-land to do neat things. For instance HPA's can use custom metrics to scale and right now our Argo Rollouts depends on Data Dog, which is sub optimal for a few reasons, having prometheus in cluster might make these things more practical.

  3. It could provide cost savings for application level/custom metrics by us just hosting our own. We have already gone down this path, and have been using Grafana/Influx/ Carbon/statsd for years with a lot of success and cost savings, even factoring in staff time.

So I guess at this point, I'm leaning towards trying the kubernetes operator in, and just remote_writing everything to the central storage. This would get rid of the need for an external prometheus to reach into all the various things in the cluster. Not sure how terrible this is in practice, or if there are other things I'm missing or forgetting.


r/PrometheusMonitoring • • Apr 08 '25

Call for Research Participants

9 Upvotes

Hi everyone!👋🏼

As part of my LFX mentorship program, I’m conducting UX research to understand how users expect Prometheus to handle OTel resource attributes.

I’m currently recruiting participants for user interviews. We’re looking for engineers who work with both OpenTelemetry and Prometheus at any experience level. If you or anyone in your network fits this profile, I'd love to chat about your experience.

The interview will be remote and will take just 30 minutes. If you'd like to participate, please sign up with this link: https://forms.gle/sJKYiNnapijFXke6A


r/PrometheusMonitoring • • Feb 18 '25

Introducing Scraparr: A Prometheus Exporter for the *arr Suite 🚀

Thumbnail
reddit.com
9 Upvotes

r/PrometheusMonitoring • • May 27 '24

Prometheus or Zabbix

9 Upvotes

Greetings everyone,
We are in the process of selecting a monitoring system for our company, which operates in the hosting industry. With a customer base exceeding 1,000, each requiring their own machine, we need a reliable solution to monitor resources effectively. We are currently considering Prometheus and Zabbix but are finding it difficult to make a definitive choice between the two. Despite reading numerous reviews, we remain uncertain about which option would best suit our needs.


r/PrometheusMonitoring • • Apr 11 '24

Introducing an OpenTelemetry Collector distribution with built-in Prometheus pipelines: Grafana Alloy

9 Upvotes

In the opening keynote of GrafanaCON 2024, we announced our newest OSS project: Grafana Alloy, our open source distribution of the OpenTelemetry Collector. Alloy is a telemetry collector that is 100% OTLP compatible and offers native pipelines for OpenTelemetry and Prometheus telemetry formats, supporting metrics, logs, traces, and profiles.

Some of you may be thinking: Wait, another collector? 

Hear us out: What makes Alloy stand out among the growing ecosystem of collectors is that it’s an open source tool that combines all the observability signals that are vital to run combined infrastructure and application monitoring workloads at scale.

Alloy combines the decade of industry-leading observability codebase of Grafana Agent with the lessons learned from some of the toughest use cases we’ve seen over the years. As a result, Alloy is both a respectfully opinionated OpenTelemetry Collector distribution and the most efficient and cost-effective way to do Prometheus-compatible metrics. Plus, it includes enterprise-grade features — such as native clustering for production at scale and built-in Vault support for enhanced security — all out of the box. 

Full Blog: https://grafana.com/blog/2024/04/09/grafana-alloy-opentelemetry-collector-with-prometheus-pipelines/

(I work @ Grafana Labs)


r/PrometheusMonitoring • • Feb 27 '24

PCA materials - Prometheus Certified Associate

9 Upvotes

r/PrometheusMonitoring • • Dec 28 '22

When will new Prometheus LTS version will be available?

9 Upvotes

As the old LTS version 2.37 is going to end in January 31, 2023, is there any update when will new LTS version be available?

https://prometheus.io/docs/introduction/release-cycle/


r/PrometheusMonitoring • • Dec 22 '22

Alerting rules "libraries, compendiums, or bundles:" where can I find a bunch of already-written, useful alerting rules for prometheus?

9 Upvotes

Prometheus has no out of the box alerting rules. The list of such "libraries of useful rules" I have so far is:

  1. https://awesome-prometheus-alerts.grep.to/ (many examples)

  2. https://alex.dzyoba.com/blog/prometheus-alerts/ (examples, links to other pages)

Can people add any they've found, and also discuss any plans to build more of this sort of thing? It's really daunting to think of having to write all my own rules. How did you start out?


r/PrometheusMonitoring • • Jun 06 '22

Support for Telegram receiver in the new Prometheus Operator 0.57.0

9 Upvotes

The new version of the Prometheus Operator adds support for CRD of Telegram receiver: https://github.com/prometheus-operator/prometheus-operator/pull/4726

Combining this with Telegram bots can be awesome!


r/PrometheusMonitoring • • Mar 15 '22

Just in case you want to scrape your gaming statistics…

9 Upvotes

If you're using Playnite frontend to play videogames (I was thinking about writing an exporter by wrapping Steam APIs but I also play games from other libraries – and not all libraries have server-side play time tracking too) and you're in sore need to track your playing time using Prometheus (or anything compatible), feel free to try my Playnite Exporter and tell me about it. =)


r/PrometheusMonitoring • • Jan 28 '22

Pyrra v0.3.0 released

9 Upvotes

Don't want to go through the weekend with flaky alerts?

Fear not, Pyrra v0.3.0, to make SLOs with Prometheus manageable, accessible, and easy to use for everyone, was just released!

https://github.com/pyrra-dev/pyrra/releases/tag/v0.3.0

Highlights:

  1. Availability / Error Budget are now calculated with Prometheus recording rules, making page load times incredibly fast. 🚀

  2. We moved from Recharts to uPlot as a graphing library. We now correctly graph your data. 📈📉

  3. You can now run a short version: kubectl get slo -A ⌨️

Check out the live demo at: https://demo.pyrra.dev


r/PrometheusMonitoring • • Oct 30 '21

Use Netbox for Prometheus service discovery without a sidecar

Thumbnail
github.com
9 Upvotes

r/PrometheusMonitoring • • Oct 19 '21

Monitoring Cluster - SNMP Exporter

9 Upvotes

Hi Folks,

I have been using Prometheus with SNMP for monitoring all my network infrastructure including Ruckus Wireless Controller (SmartZone) and everything is fine. I just have a question, I have a cluster of three smartzones, and each of them has its own IP address. Right now the only target from where im scraping data is the master's IP address.

EXAMPLE:

CLUSTER IP ADDRESSES:

SZ1-TEST-PP: 10.0.0.4 (Master)

SZ2-TEST-PP: 10.0.0.5

SZ3-TEST-PP: 10.0.0.6

Target Config:

- targets:

- 10.0.0.4

labels:

instance: 'SZ LAB TESTING'

chain: 'LAB-TESTING'

site_id: '01'

My concern is the next: I want to add the other IP addresses in case the master stop functioning but I don't want to duplicate (or triplicate) data in Prometheus ¿How I can achieve this? do I just need to add the other IP addresses with the same labels? or there's another way to do this?.

Hope you can help me!


r/PrometheusMonitoring • • Oct 08 '21

Parca an open source continuous profile

9 Upvotes

https://www.polarsignals.com/blog/posts/2021/10/08/introducing-parca-we-got-funded/

We are super excited to be announcing Parca[1] an open-source continuous profiling storage and query engine as well as an eBPF based profiler. We are long time Prometheus, Kubernetes, Thanos, and Cortex maintainers, which are all very performance-sensitive so we wished we had had access to continuous profiling tools when we first started working on those projects.

What is continuous profiling? Instead of capturing profiling data on-demand and as a manual process, continuous profiling always captures profiling data, and stores it to be queried over time to aggregate and compare.

Using our private beta we explored further what our users want most from continuous profiling, and we identified it to be:

* Cost saving: We discovered all companies to have low hanging fruit that can easily be optimized away, often saving easily 20-30% in resources. The only problem is companies don’t know because they don’t measure.

* Optimizing individual interactions: Latencies of interactions have a proven correlation between converting a customer or not. It’s incredibly hard to obtain profiling data at the right time, but if it’s always captured it’s just a matter of querying it.

* Understanding change: Performance engineering tends to be very sensitive and small changes can have a big impact, therefore the ability to deeply understand what changed from a point in time or a newly rolled out version of a software is invaluable for optimizing but also in order to understand incidents better.

Parca features a fully from scratch designed storage that implements multiple optimizations that are unique to profiling data, specifically our sparse XOR encoding for uint64 series is what allows us to store this data at raw resolution. More detailed information can be found in the storage docs[3]. And with the newly open-sourced Parca Agent[4], we can capture CPU profiling data with practically unnoticeable overhead for the profiled processes, it automatically discovers all containers in a Kubernetes cluster and starts profiling them with zero instrumentation needed!

[1] https://parca.dev/

[2] https://www.polarsignals.com/blog/posts/2021/02/09/announcing-polar-signals-continuous-profiler/

[3] https://www.parca.dev/docs/storage

[4] https://www.parca.dev/docs/parca-agent-design


r/PrometheusMonitoring • • May 03 '21

Scaling Prometheus - on premise

9 Upvotes

My Prometheus setup is starting to hit limits in terms of memory usage and I need to start looking at howto scale it. We are currently evaluating Grafana cloud but that might be a few months away. I need an interim solution. The current cluster is comprised of 2 Prom servers scraping the same endpoints (ie one is a DR Prometheus). I would like to add more Prometheus servers that scrape other endpoints and add them to the cluster. I have started looking at Cortex and Thanos. From my research I found that Cortex can only be used on AWS and I'm not so sure about Thanos. I am not worried about pushing the metrics to an object store (like S3) as I am happy with them being written to the filesystem. I would like to know if Thanos or Cortex can be run on premise (in Docker) and if I can get pointed to some information on howto do that.


r/PrometheusMonitoring • • Feb 17 '21

Observability: What it is and why you need it | Logging, Metrics & Alerts

Thumbnail
elastisys.com
9 Upvotes

r/PrometheusMonitoring • • Jan 04 '21

Create a Quick and Easy Prometheus Exporter

Thumbnail
trstringer.com
9 Upvotes

r/PrometheusMonitoring • • Oct 01 '20

Prometheus Training

9 Upvotes

Hi all,

My employer has asked me to go and find some training programs I would like to participate in and I would really like to get some more in-depth knowledge on Prometheus/Alertmanager/Blackbox, etc.

On the website of Prometheus I have found some links to suppliers/bureau's that do this, but I was wondering who has experience with some/one of these.


r/PrometheusMonitoring • • Sep 18 '20

Multi-tenant monitoring with Thanos Receiver

9 Upvotes

Recently I was evaluating Thanos Receiver to implement a multi-tenant monitoring solution for a client. I felt there is scarcity of resources on this particular Thanos component. So, I decided to write a blog on it. I hope this can be useful for anyone who is also exploring Thanos receiver to implement a multi-tenant monitoring solution. You can check it out here.


r/PrometheusMonitoring • • Jul 02 '20

The Anatomy of a PromQL Query | PromLabs Blog

Thumbnail
promlabs.com
9 Upvotes

r/PrometheusMonitoring • • May 25 '20

Conntrack metrics from the node exporter

Thumbnail
robustperception.io
9 Upvotes

r/PrometheusMonitoring • • Apr 04 '20

Setup Grafana with Prometheus

Thumbnail
ashish.one
9 Upvotes

r/PrometheusMonitoring • • Dec 09 '19

A great blog post about the advantages of Prometheus Vs. Graphite

Thumbnail
engineering.nanit.com
9 Upvotes

r/PrometheusMonitoring • • Dec 02 '19

Target labels, not metric name prefixes

Thumbnail
robustperception.io
9 Upvotes