a6-plugin-prometheus

Configure the Apache APISIX Prometheus plugin for metrics export and monitoring.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of enabling and configuring the Prometheus plugin for Apache APISIX, allowing for comprehensive monitoring of your API gateway's performance and health.

Core Features & Use Cases

  • Enable Prometheus Metrics: Configure the plugin on routes or globally to expose key APISIX metrics.
  • Monitor Key Metrics: Track HTTP status codes, latency, bandwidth, upstream health, and LLM token usage.
  • Dashboard Integration: Facilitates integration with Grafana for visualization and alerting.
  • Use Case: You need to monitor the latency and error rates of your critical API routes. This Skill allows you to quickly enable Prometheus metrics for these routes and visualize the data in Grafana.

Quick Start

Enable Prometheus metrics on the current route using the provided configuration.

Frequently Asked Questions about a6-plugin-prometheus

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

FAQPage Schema
How do I monitor APISIX API gateway metrics with Prometheus?

To monitor APISIX metrics with Prometheus, you need to configure the prometheus plugin to export HTTP status, latency, bandwidth, and upstream health data for scraping.

Can I track LLM token usage and latency in APISIX using Prometheus?

Yes, enabling the prometheus plugin in APISIX allows you to track LLM token usage metrics alongside standard HTTP latency, bandwidth, and upstream health data.

How do I export APISIX route metrics to a Grafana dashboard?

You can export APISIX route metrics to a Grafana dashboard by enabling the prometheus plugin on specific routes to expose metrics for scraping and visualization.

Does the APISIX prometheus plugin support custom labels and histogram buckets?

Yes, configuring the APISIX prometheus plugin supports custom labels and histogram buckets to customize HTTP status, latency, and bandwidth metrics export.

What is the best way to expose upstream health metrics from APISIX?

The best way to expose upstream health metrics from APISIX is by configuring the prometheus plugin globally or on specific routes to enable metrics scraping.