# Scraping ESPHome metrics with Prometheus

DevFeed: [Scraping ESPHome metrics with Prometheus](<https://devfeed.tech/articles/scraping-esphome-metrics-with-prometheus-21774.md>)

Original publisher: [Read original article](<https://enoent.fr/posts/production-grade-esphome/01-scraping-esphome-metrics-with-prometheus/>)

Author: Marc Plano-Lesay

Published: 2026-03-29T03:18:27Z

Content type: tutorial

Language: en

Sources: [Marc Plano-Lesay](<https://devfeed.tech/sources/marc-plano-lesay.md>)

Topics: [esphome](<https://devfeed.tech/topics/esphome.md>), [Prometheus](<https://devfeed.tech/topics/prometheus.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>)

Tags: [devices](<https://devfeed.tech/tags/devices.md>), [esphome](<https://devfeed.tech/tags/esphome.md>), [grafana](<https://devfeed.tech/tags/grafana.md>), [iot](<https://devfeed.tech/tags/iot.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [observability](<https://devfeed.tech/tags/observability.md>), [prometheus](<https://devfeed.tech/tags/prometheus.md>)

## AI overview

A tutorial on exposing ESPHome device metrics in the OpenMetrics format and scraping them with Prometheus. It explains how observability helps monitor device state, connectivity, and diagnostic information, with Grafana mentioned for dashboards and alerting.

## Source excerpt

What is observability and why does it matter? ESPHome is an amazing tool. Devices you build with it are very useful. But how do you notice when they don't work? You would eventually notice if a temperature sensor stopped working and your climate control automations aren't working as intended. While that's not ideal, it gets worse: what about a sensor part of an alarm system, detecting that a window is open?