This is an unreleased feature. It will be available once our Server Agent v2.x.x will be released.
You can use this feature of our Server Monitoring Agent to send custom metrics to be displayed for this Server Agent in your HetrixTools dashboard.
- the variables must be stored in the form of a JSON in a file called
- this file must be located in the same folder as the agent script and must be readable by the
- variable names can only be alphanumeric (4-32 characters long)
- values can only be numeric
- a maximum of 10 custom variables are accepted for each server agent
Use case example:
- you could create your own script that would record certain metrics on your server; for instance, a script that records the MySQL total connections and failed connections every minute
- your script can then record these metrics into the
custom_variables.jsonfile, located in the HetrixTools server agent folder
- our agent will then fetch these custom variables from this file every minute and post them to our platform to be displayed in this server agent’s metrics
- you can run your custom script to refresh the custom variables as often as you’d like, but the HetrixTools agent will only record these metrics once per minute; we recommend running your custom script once per minute as well