1
0
Fork 0
promscripts/printer/epson/et-2720
Mike Gerwitz 16108f0c2e
printer/epson/et-2720/metrics: Add serial number
Distinguish between two printers of the same model without having to
rely on URL, which can change over time.
2021-06-24 21:53:14 -04:00
..
README.md Epson ET-2720 metrics 2021-02-23 00:16:42 -05:00
ink.awk prom.awk: New basic library 2021-03-01 21:56:30 -05:00
metrics printer/epson/et-2720/metrics: Add serial number 2021-06-24 21:53:14 -04:00
usage.awk prom.awk: New basic library 2021-03-01 21:56:30 -05:00

README.md

Epson ET-2720 Metrics

The Epson ET-2720 is a tank printer. It has a web interface that can be used to review printer status. The relevant sections do not require authentication.

This script produces the following metrics:

  • printer_pages_count with the number of pages for copies, scans, printing, and internal operations (like diagnostic pages);
  • printer_ink_level for CYMK ink tank levels;
  • printer_scrape_time_seconds for the timestamp of the last scrape; and
  • printer_scrape_duration_seconds for the number of seconds spent scraping (yes, sorry, this is an integer value and will likely be 0 most of the time).

How To Use

Simply provide the URL to the web interface:

# Generate metrics
$ ./metrics URL > et-2720.$$

# Atomic move to avoid Prometheus reading incomplete writes
$ mv et-2720.$$ et-2720.prom