prometheus-html-exporter

command module
v0.0.0-...-88863ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

README

Prometheus HTML exporter

Still under development

This project aims to allow the scraping of metrics contained within HTML web pages, collecting them with an XPath selector and exporting them as metrics in a Prometheus format. See the docs for more information.

Running (under development)

For now, you must pass a config yaml file, so you could run the program as:

go run . -c examples/full-config.yaml

A binary release distribution and Docker image are planned for the near future.

Testing

Run the test suite with the following command:

make test

Features

Implemented
  • Scrape a web value using XPath
  • YAML file configuration
Under development:
  • Binary and Docker image releases
  • Query param configuration (allows native integration with Prometheus scrape_configs)
  • Multiple endpoint configuration
  • Exporter instrumentation (metrics about the scrape itself)
  • Timeouts
  • Basic auth scrape
  • Basic arithmetic with scraped value
  • Arithmetic "pipeline" for one or more scraped values (e.g. allowing you to divide two numbers)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL