Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

WT stats to graph

24 views
Skip to first unread message

Matan Tennenhaus

unread,
Oct 7, 2024, 1:17:57 PM10/7/24
to wiredtiger-users
Hi,
I am trying to create graphs from Wiredtiger stats, and I came across https://source.wiredtiger.com/develop/tool-statistics.html.
The problem is that i cannot find in the Wiredtiger repo the tools that are mentioned, such as tools/statlog.py or tools/statlog.py.
I could use some advice on how to easily create graphs from the statistics. Maybe even if you have some tools that are not mentioned in the documentation, or if you can recommend some other techniques.
Many Thanks.
Matan.

Etienne Petrel

unread,
Oct 8, 2024, 5:32:27 PM10/8/24
to wiredtiger-users
Hi Matan,

Thank you for your interest in WiredTiger and thank you for flagging this! After checking, I realised that we should not be referencing those files in the documentation since they were removed a while ago with:
A commit that still contains those tools can be found here. Please be aware that this code was removed ~ 10 years ago, therefore we cannot guarantee it is working as expected but that could still help you to start.
Another approach would be to rely on the generated file using the JSON format and parse it depending on your needs. To generate the stats in a JSON format, use the following connection configuration "statistics_log=(wait=1,json=true,on_close=true)". You can read more about those options in our documentation, inside the "statistics_log" section. With this approach, you will need to double-check the generated JSON file. Indeed, WiredTiger will generate multiple JSON sections but WiredTiger does add the JSON array symbols [ ]. It is something I am checking with the team as I think WiredTiger should do this so the generated file is a valid JSON file.

I hope this helps.

Regards

Etienne
Reply all
Reply to author
Forward
0 new messages