# json_api

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [connect-full.txt](https://docs.redpanda.com/connect-full.txt)

---
title: json_api
latest-connect-version: 4.93.0
latest-operator-version: v26.1.4
latest-console-tag: v3.7.3
latest-redpanda-tag: v26.1.9
docname: metrics/json_api
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: metrics/json_api.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/metrics/json_api.adoc
page-git-created-date: "2024-05-24"
page-git-modified-date: "2025-10-06"
---

<!-- Source: https://docs.redpanda.com/connect/components/metrics/json_api.md -->

**Available in:** Self-Managed

Serves metrics as JSON object with the service wide HTTP service at the endpoints `/stats` and `/metrics`.

```yml
metrics:
  json_api:
    host: ""
    port: 4040
    path: /stats
```

This metrics type is useful for debugging as it provides a human readable format that you can parse with tools such as `jq`