exporter

command module
v0.0.0-...-e5cb7f3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 3 Imported by: 0

README

Prometheus simple app exporter

This project provides a simple example of a Prometheus exporter written in Golang. The main application runs as a daemon, writing metric values to memory and exposing them for Prometheus to scrape. The metrics structure implements the prometheus.Collector interface to collect metrics from memory.

metrics output

curl -s http://127.0.0.1:9123/metrics | grep ^mexample

mexample_app_uptime 102.201255334
mexample_messages_failed 7
mexample_messages_success 7
mexample_messages_total 14

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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