This application allows to access exometer metrics via HTTP. It is usually convenient quick/ad-hoc inspection of the application which uses exometer to store its metrics.
This application provides a yaws appmod -- exometer_http_yaws
.
The appmod streams metric values when a GET
request is received.
You may save the stream to a file (.csv
) and feed it to a real-time
data visualization tool like kst, livegraph, etc.
Multiple simultaneous streams are supported.
There are multiple ways of getting a streamed .csv
file.
To stream metrics to a .csv
file, run the following command:
curl -N -get http://localhost:8004/ --verbose > ~/Desktop/kst_test_files/test2.csv
Where parameter -N
means no buffering and --verbose
provides some info to terminal.
Or try downloading file using browser.
This application configured in sys.config
file and yaws.conf
.
Configuration items under sys.config
:
- delay - time interval between metric values retrieval from Exometer.
Provided in miliseconds. Default value is 1 second.
Example:
{exometer_http_yaws, [
{delay, 1000}
]}
Configuration items under yaws.conf
:
- You may specify custom URL path.
Example:
<server exometer_http_yaws>
...
appmods = </csv, exometer_http_yaws>
...
</server>
exometer_http_yaws |
exometer_http_yaws_app |
exometer_http_yaws_prometheus |
exometer_http_yaws_stream |
exometer_http_yaws_stream_sup |
exometer_http_yaws_sup |