---
title: "Viewing Server Metrics in Supported Formats"
canonical: "https://docs.infoblox.com/space/BloxOneInfrastructure/216137801/Viewing%20Server%20Metrics%20in%20Supported%20Formats"
format: markdown
---
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://<Server IP address>/api/hostmonitoring/v1/metrics" --header 'Accept: application/json' | jq`

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

`% curl -k '<https://<Server> IP address>/api/hostmonitoring/v1/metrics?$format=json' -H Accept: | 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://<Server IP address>/api/hostmonitoring/v1/metrics' -H 'Accept: application/openmetrics-text'`

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

`% curl -k 'https://<Server IP address>/api/hostmonitoring/v1/metrics?$format=text'`