Open pearce8 opened 2 months ago
Hi @dyokelson, I've added some new capabilities in Caliper to import run metadata through the Caliper config strings. This is in the current Caliper master branch. You can pass in metadata key-value pairs directly like so:
CALI_CONFIG="spot,metadata(foo=fooval,bar=barval)"
Alternatively you can read it from json file:
CALI_CONFIG="spot,metadata(file=data.json)"
The file should be a json dictionary:
{ "foo": "fooval", "bar": "barval" }
It allows for more complex cases too, e.g. you can have nested dictionaries and specify individual keys you want to read instead of reading the whole file. You can also combine the two options or read multiple files by adding more metadata(...)
entries. Let me know if you want to learn more.