a6-plugin-prometheus

Expose APISIX metrics in Prometheus format for monitoring and dashboards.

1|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/api7/a6 --skill a6-plugin-prometheus-api7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: a6-plugin-prometheus
Source: https://github.com/api7/a6/tree/main/skills/a6-plugin-prometheus
Command: npx skills add https://github.com/api7/a6 --skill a6-plugin-prometheus-api7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Prometheus plugin for APISIX exposes metrics for routes, services, and global rules, enabling observable performance data and actionable dashboards.

Core Features & Use Cases

  • Exposes core metrics such as latency, status codes, and bandwidth for per-route and global collection
  • Supports Grafana dashboards and custom labels, with easy APISIX integration
  • Suitable for production monitoring, alerting, capacity planning, and cross-environment visibility

Quick Start

Enable the Prometheus plugin on routes or global rules and access the metrics endpoint to begin scraping.

Frequently Asked Questions about a6-plugin-prometheus

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose APISIX metrics for Prometheus monitoring?

You can expose APISIX metrics for Prometheus monitoring by enabling the Prometheus plugin on routes or global rules and accessing the metrics endpoint to begin scraping. This provides per-route and global metrics collection.

Can I track API latency and upstream health status in Grafana using APISIX?

Yes, you can track API latency and upstream health status in Grafana using APISIX. The Prometheus plugin exposes these metrics in a format that supports Grafana dashboards and custom labels across development, staging, and production environments.

What APISIX configuration is required to start collecting per-route metrics?

Collecting per-route metrics requires an APISIX deployment with the prometheus plugin enabled. You also need proper plugin_attr configuration and an accessible metrics endpoint to allow Prometheus to scrape the exposed data.

Does the APISIX Prometheus plugin support global rules for production monitoring?

Yes, the APISIX Prometheus plugin supports global rules for production monitoring. It exposes observable performance data for routes, services, and global rules, making it suitable for alerting, capacity planning, and cross-environment visibility.

Why do I need the prometheus plugin_attr configuration for APISIX metrics?

You need the prometheus plugin_attr configuration for APISIX metrics because it defines the settings required to properly expose the metrics endpoint. Combined with the enabled plugin, it ensures Prometheus can successfully scrape latency, status codes, and bandwidth data.