johrstrom / jmeter-prometheus-plugin

A Prometheus Listener for Apache JMeter that exposes results in an http API
Apache License 2.0
164 stars 109 forks source link

Update README to detail how to use properties #97

Closed MiguelBits closed 3 years ago

MiguelBits commented 3 years ago

Is it inside the jmx file? Where ? Inside user defined variables doesnt do it
Thanks for this great tool

chiabre commented 3 years ago

You can define the exporter properties as standard JMeter inline arguments.

For the port, it would be

-Jprometheus.port=9270

johrstrom commented 3 years ago

Yep! Thanks @chiabre!

For reference, here are all the options you can override https://github.com/johrstrom/jmeter-prometheus-plugin#properties-you-can-override either through the CLI through -J or in a properties file of your choice.

johrstrom commented 3 years ago

Actually, let me re-open this and use it to update the docs. So that portion of the documentation should indicate how to use these properties, maybe linking back to jmeter docs.

MiguelBits commented 3 years ago

Thanks for the info very helpful