Profiles are small configuration units which can be merged into the overall configuration.

The following is an example of starting heroic with an in-memory configuration using the shell, and the memory profile:

$> tools/heroic-shell --server -P memory

A list of all available profiles and their options can be seen with the --help switch.

Note: -X elasticsearch.configure will cause the temporary elasticsearch instances to be automatically configured.

Playing with the memory profile

Using the load-generated command, you can generate some random data for the last week to play around with.

heroic> load-generated

You can also manually write some data into the the local instance:

heroic> write --series '{"key": "test", "tags": {"host": "a", "what": "foo"}}' -p 00:00=1 -p 00:01=2
heroic> write --series '{"key": "test", "tags": {"host": "a", "what": "bar"}}' -p 00:00=3 -p 00:01=4

We can fetch the data back out:

heroic> fetch --series '{"key": "test", "tags": {"host": "a", "what": "bar"}}' --start 00:00 --end 00:02

We can also query the data:

heroic> query average from points(1d) where $key = test;
heroic> query average from points(1d) where $key = test and what=bar;