🌐
Prometheus
prometheus.io › docs › instrumenting › writing_exporters
Writing exporters | Prometheus
The main decision you need to make ... metrics that rarely change, then getting everything perfect is an easy choice, a good example of this is the HAProxy exporter ....
🌐
Medium
medium.com › @dast04 › writing-custom-prometheus-exporters-in-python-kubernetes-73626b66d78c
Writing Custom Prometheus Exporters (in Python) — Kubernetes | by Daniello | Medium
August 22, 2024 - The Prometheus client is a Python client for writing exporters. Below you can find a simple example main.py which generates a random number between 1 and 10, every 30 seconds.
Discussions

Node Exporter or Alloy - what do you use?
Do you mean you want to just use Alloy as a replacement for NE? If so, I’d say don’t bother. Alloy is much more than NE, essentially being Grafana’s version of the Open Telemetry collector. It can grab your system metrics like NE, but can remote write them to a Prometheus endpoint. It can also do this for logs and traces, as well as doing various degrees of processing on them before shipping them of to an OTEL compatible endpoint. I was using both, with Alloy scraping the node exporter endpoint, but seemed silly to me to use that AND Alloy, so dumped node exporter, but my use case has Alloy as the collector to remote write the metrics, logs and traces. That said, I’ve spent many hours crying over Alloy configs, so DM me if you need some help writing one. More on reddit.com
🌐 r/PrometheusMonitoring
29
10
December 6, 2024
Popular monitoring tool to learn
grafana+prometheus is definitely more common in job postings, but honestly for learning the fundamentals checkmk is nicer because it auto-discovers everything and gives you the full monitoring picture out of the box. prometheus你需要 to know what metrics you want to scrape and write your own exporters for half the things. if your goal is devops/sre jobs, prometheus is the industry standard though so i'd focus there. zabbix is still used in enterprise but feels like learning cobol sometimes. More on reddit.com
🌐 r/selfhosted
9
8
March 17, 2026
Prometheus Exporters : r/PrometheusMonitoring
For example, Prometheus recommends using base units for easier compatibility between systems. Netdata seems to use random units like disk space in GB and memory in MB. This makes it harder to use. Plus, netdata seems to use labels where sometimes it should be separate metrics. ... As an exporter ... More on reddit.com
🌐 r/PrometheusMonitoring
December 29, 2022
Prometheus web exporter

How does this compare to https://github.com/prometheus/blackbox_exporter? I know the latter can also do web monitoring, so what's the overlap in features and what's unique to this new one?

More on reddit.com
🌐 r/PrometheusMonitoring
2
12
June 12, 2020
🌐
GitHub
github.com › prometheus › node_exporter
GitHub - prometheus/node_exporter: Exporter for machine metrics · GitHub
For advanced use the node_exporter can be passed an optional list of collectors to filter metrics. The parameters collect[] and exclude[] can be used multiple times (but cannot be combined). In Prometheus configuration you can use this syntax under the scrape config.
Author: prometheus
🌐
Prometheus
prometheus.io › docs › instrumenting › exporters
Exporters and integrations | Prometheus
Commonly, those exporters are hosted outside of the Prometheus GitHub organization. The exporter default port wiki page has become another catalog of exporters, and may include exporters not listed here due to overlapping functionality or still being in development. The JMX exporter can export from a wide variety of JVM-based applications, for example Kafka and Cassandra .
🌐
Thomas Stringer
trstringer.com › quick-and-easy-prometheus-exporter
Create a Quick and Easy Prometheus Exporter | Thomas Stringer
January 3, 2021 - Step 3 is the multiple calls set and state calls on the Prometheus metrics in AppMetrics.fetch (lines 42 - 45) Step 4, the sleep, is implemented in AppMetrics.run_metrics_loop so that we have some delay in metrics scraping · In Kubernetes, this could be deployed alongside the application container like this: ... Now with this exporter, Prometheus can scrape metrics from this pod on port 9877, all thanks to the exporter shim that was put between Prometheus and the application!
🌐
Checkly
checklyhq.com › home › blog › mastering prometheus exporters
Mastering Prometheus Exporters | Techniques & Best Practices
December 19, 2024 - Add a new job configuration in ... (usually prometheus.yml). Define the target endpoints (exporter's HTTP endpoints) under the appropriate job in the configuration file. The scheme defaults to ‘http’ and the metrics_path defaults to '/metrics' change those accordingly · Here’s an example of a Prometheus ...
🌐
MetricFire
metricfire.com › blog › first-contact-with-prometheus
First Contact with Prometheus Exporters | MetricFire
May 27, 2024 - From an application perspective, you can implement a Prometheus exporter in two situations: exporting built-in application metrics and exporting metrics from a standalone or third-party tool. This is typically when a system or an application exposes its key metrics natively. The most interesting example is when an application is built from scratch since all the requirements needed to act as a Prometheus client can be studied and integrated through the design.
🌐
Better Stack
betterstack.com › community › guides › monitoring › prometheus-exporter
A Comprehensive Guide to Prometheus Exporters | Better Stack Community
February 26, 2025 - In most cases, you won't need to ... one for your needs. For example, if you want to monitor your Nginx servers with Prometheus, you can use the official NGINX Prometheus exporter provided ......
Find elsewhere
🌐
Grafana
grafana.com › oss › prometheus › exporters
Prometheus Exporter Quickstarts | Grafana Labs
The following quickstart provides setup instructions and preconfigured dashboards, alerting rules, and recording rules for Node Exporter. ... The following quickstart provides setup instructions and preconfigured dashboards, alerting rules, and recording rules for the prom-client for Node.js Prometheus metrics exporter.
🌐
Medium
medium.com › @MetricFire › first-contact-with-prometheus-exporters-9dbc41531c05
First Contact with Prometheus Exporters | by MetricFire | Medium
August 9, 2023 - The following example (source gist) — a Flask hello-world application slightly modified to process requests with random response times — shows a Prometheus exporter working along a Flask application. (see hello method at line 18).
🌐
Last9
last9.io › blog › best-practices-using-and-writing-prometheus-exporters
Best Practices Using and Writing Prometheus Exporters | Last9
January 25, 2026 - Access the Sample Page Once the ... simply a directory where you’ll write your exporter. For this example, the directory will be named httpd-exporter....
🌐
Prometheus
prometheus.io › docs › guides › node-exporter
Monitoring Linux host metrics with the Node Exporter | Prometheus
Now that Prometheus is scraping metrics from a running Node Exporter instance, you can explore those metrics using the Prometheus UI (aka the expression browser). Navigate to localhost:9090/graph in your browser and use the main expression bar at the top of the page to enter expressions. The expression bar looks like this: Metrics specific to the Node Exporter are prefixed with node_ and include metrics like node_cpu_seconds_total and node_exporter_build_info. Click on the links below to see some example metrics:
🌐
RTFM
rtfm.co.ua › home › monitoring › prometheus › prometheus: building a custom prometheus exporter in python
Prometheus: Building a Custom Prometheus Exporter in Python
February 25, 2023 - Or another option is when the exporter will refer to some external resource, receive values, and enter them into the metric. For example, we can refer to some API and get data from it, in this example it will be Jenkins: #!/usr/bin/env python import time import random from prometheus_client import start_http_server, Gauge from api4jenkins import Jenkins jenkins_client = Jenkins('http://localhost:8080/', auth=('admin', 'admin')) jenkins_jobs_counter = Gauge('jenkins_jobs_count', "Number of Jenkins jobs") def get_metrics(): jenkins_jobs_counter.set(len(list(jenkins_client.iter_jobs()))) if __name__ == '__main__': start_http_server(9000) while True: get_metrics() time.sleep(15)
🌐
GitHub
github.com › mikejoh › exporter-example
GitHub - mikejoh/exporter-example: Example of how to write a Prometheus Exporter in Go · GitHub
In this example we'll explore how to write an exporter using Go and a simple service that exposes a REST API. The service API can be seen as an third party application that exposes some kind of data (of it's internal state) that could be exposed to Prometheus.
Author: mikejoh
🌐
GitHub
github.com › discourse › prometheus_exporter
GitHub - discourse/prometheus_exporter: A framework for collecting and aggregating prometheus metrics · GitHub
summary = PrometheusExporter::Metric::Summary.new("load_time", "time to load page", quantiles: [0.99, 0.75, 0.5, 0.25]) histogram = PrometheusExporter::Metric::Histogram.new("api_time", "time to call api", buckets: [0.1, 0.5, 1]) In some cases (for example, unicorn or puma clusters) you may want to aggregate metrics across multiple processes. Simplest way to achieve this is to use the built-in collector. First, run an exporter on your desired port (we use the default bind to localhost and port of 9394):
Author: discourse
🌐
Medium
medium.com › teamzerolabs › 15-steps-to-write-an-application-prometheus-exporter-in-go-9746b4520e26
15 Steps to Write an Application Prometheus Exporter in GO | by Jack Yeh | TeamZeroLabs | Medium
September 20, 2020 - tl;dr: Full example code: https://github.com/teamzerolabs/mirth_channel_exporter, read on to see step by step instructions · Exporters are the heart and soul of Prometheus Monitoring Pipelines. If you run into a situation where an exporter does not exist yet, you are encouraged to write your own.
🌐
OpenTelemetry
opentelemetry.io › docs › specs › otel › metrics › sdk_exporters › prometheus
Metrics Exporter - Prometheus | OpenTelemetry
First, translation_strategy MUST be applied to construct metric names. Then, the Prometheus Exporter MUST apply content negotiation, which may include a second translation of metric names using the requested escaping scheme. For example, for a counter metric named foo.bar with unit By:
🌐
OneUptime
oneuptime.com › home › blog › how to build custom exporters for prometheus
How to Build Custom Exporters for Prometheus
December 5, 2025 - Include a health check - Helps with monitoring the exporter itself · Use appropriate metric types - Counter, Gauge, Histogram, Summary · Follow naming conventions - namespace_subsystem_name_unit · Include useful labels - But avoid high cardinality · package main import ( "log" "net/http" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" ) // Collector implements prometheus.Collector interface type MyCollector struct { upMetric *prometheus.Desc requestsMetric *prometheus.Desc latencyMetric *prometheus.Desc } func NewMyCollector() *MyC
🌐
Readthedocs
opentelemetry-python-kinvolk.readthedocs.io › en › latest › exporter › prometheus › prometheus.html
OpenTelemetry Prometheus Exporter — OpenTelemetry Python documentation
from opentelemetry import metrics from opentelemetry.exporter.prometheus import PrometheusMetricsExporter from opentelemetry.sdk.metrics import Counter, Meter from prometheus_client import start_http_server # Start Prometheus client start_http_server(port=8000, addr="localhost") # Meter is responsible for creating and recording metrics metrics.set_meter_provider(MeterProvider()) meter = metrics.get_meter(__name__) # exporter to export metrics to Prometheus prefix = "MyAppPrefix" exporter = PrometheusMetricsExporter(prefix) # Starts the collect/export pipeline for metrics metrics.get_meter_provider().start_pipeline(meter, exporter, 5) counter = meter.create_counter( "requests", "number of requests", "requests", int, ("environment",), ) # Labels are used to identify key-values that are associated with a specific # metric that you want to record.
🌐
DEV Community
dev.to › ladiesindevops › building-a-prometheus-exporter-1cb9
Building a Prometheus Exporter - DEV Community
May 5, 2021 - They do not maintain any local state instead they show a view derived from another metric source such as JMX. For example, Jenkins Jobmon is a Prometheus exporter for Jenkins which calls Jenkins API to fetch the metrics on every scrape.