Document toolboxDocument toolbox

Viewing Server Metrics in Supported Formats

The Infoblox Platform supports displaying NIOS-X server metrics in JSON and text formats. If you do not use the Accept header or the $format, the default output format will be OpenMetrics text.

JSON Format

With the Accept header, you can view NIOS-X server metrics in JSON format. The following is a sample command:

% curl -k 'https://<NIOS-X server IP>/api/NIOS-X servermonitoring/v1/metrics -H 'Accept: application/json' | jq

You can also define the metrics in JSON format using the following sample command:

% curl -k 'https://<NIOS-X server IP>/api/NIOS-X servermonitoring/v1/metrics?$format=json | jq

Text Format

With the Accept header, you can view NIOS-X server metrics in text format. The following is a sample command:

% curl -k 'https://<NIOS-X server IP>/api/NIOS-X servermonitoring/v1/metrics' -H 'Accept: application/openmetrics-text'

You can also define the metrics in text format using the following sample command:

% curl -k 'https://<NIOS-X server IP>/api/NIOS-X servermonitoring/v1/metrics?$format=text'

Â