compose

command
v0.0.0-...-9673f84 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Demo of the expvar package. You register metrics by creating NewT, then

update it.

You can access the exposed metrics via HTTP at /debug/vars, you'll get a JSON
object with your exposed variables and some pre defined system ones.

You can use monitoring system such as Nagios and OpenNMS to monitor the
system and plot the change of data over time.

After you run the server, try "curl http://localhost:8079?user=lassie" several times and then
"curl http://localhost:8079/debug/vars | python -m json.tool".

Jump to

Keyboard shortcuts

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