Skip to main content
Glama

query_sensor_metric

Execute PromQL queries on sensor Prometheus data to retrieve real-time or historical metrics for monitoring and analysis.

Instructions

Execute arbitrary PromQL against a sensor's Prometheus datasource. Auto-resolves datasource UID and target sensor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sensorNoSensor hostname. If omitted, uses first discovered sensor.
queryYesPromQL query to execute
instantNoWhether to run an instant query (default) or range query
startNoStart time for range queries (RFC3339 or Unix timestamp)
endNoEnd time for range queries (RFC3339 or Unix timestamp)
stepNoStep interval for range queries (e.g., "15s", "1m")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quanticsoul4772/grafana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server