Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Benchpark and Ramble variables to Caliper #355

Open
4 tasks
pearce8 opened this issue Aug 26, 2024 · 1 comment
Open
4 tasks

Pass Benchpark and Ramble variables to Caliper #355

pearce8 opened this issue Aug 26, 2024 · 1 comment
Assignees

Comments

@pearce8
Copy link
Collaborator

pearce8 commented Aug 26, 2024

@daboehme
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants