promtestsource

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

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 15 Imported by: 0

README

About

This is a very simple prometheus metrics target that can be scraped.

After start it let's the user set a new value for the gauge that it exposes for prometheus.

Usage

Just use

go run promtestsource.go

or

go run promtestsource.go :5002

to set a different port and run multiple instances.

Test

Fetch the current metrics manually with

curl http://localhost:5001/metrics

Why

Simple way to trigger alerts and test them.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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