-
Notifications
You must be signed in to change notification settings - Fork 119
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
export performance metrics to database #145
Comments
Many thanks for the Issue, always great to get feedback. Firstly as HammerDB is open source the best way (or certainly quickest) to get a feature added is to develop it yourself and then submit a pull request to have the feature added. If you don't necessarily have the skills to do this then it can be considered, however there is a long feature request list so it may not get added immediately. Firstly please provide some more details about what you are thinking of capturing. As a guide one enhancement being considered is to store the results in the SQLite database already used for the web service interface. This would provide a standardised way to pull the results externally. |
Storing the results in the sqlite db is good enough. Any ETA for this enhancement? |
As noted HammerDB is open source, the best way to have an ETA is to develop it yourself, if you cannot do this you can also consider employing a developer who can and submit a pull request. Otherwise consider other non-technical ways in which you can contribute such as writing documentation. (developers spending time writing documentation are not developing new features). |
Pull request #278 adds the CLI interface as well as an enhanced SQLite repository for job output, timing data and transaction count. On starting the web service, there is now the same interactive prompt as in the CLI, with the exception of the switchmode, steprun and datagenrun commands and the addition of the jobs command.
Output is stored in a SQLite database and queried with the jobs command and returned in JSON list or object format.
The jobs command can be used for example to query the result
and the configuration for the job
The HTTP interface remains active as before with the CLI translating CLI commands via a REST interface to HTTP commands. Jobs can be run and queried through the CLI or directly through HTTP a summary of job query commands are as follows:
an example CLI script would be as follows with the addition of the jobs command.
Returning output as follows:
With this job able to be queried at a later date through either the command line or over HTTP such as retrieving the transaction counter data. The SQLite repository functionality will only be enabled within the WS interface as opposed to the GUI or standalone CLI that will continue to output to the standard output and text files. It is envisaged that storing output in a repository with retrieval over HTTP enables the potential to build an alternative web based UI over the existing core HammerDB functionality in future as originally raised in #108. |
I'd like to request new feature to export performance metrics (TPM,NOPM and response time) to db so it is easier to generate the graph for performance comparison.
The text was updated successfully, but these errors were encountered: