Latest value of a metric
kairosdb_last_valueRetrieve the most recent value of a metric with its timestamp. Filter by tags to get real-time readings for monitoring current status.
Instructions
Retrieves the most recent value of a metric (equivalent to a real-time reading).
Use cases:
"What is the current CPU usage on server web-01?"
"Latest reading from the request latency metric"
Args:
metric_name: Exact metric name
tags: Tag filters to target a specific host
response_format: "markdown" or "json"
Returns: Latest known value with its timestamp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | KairosDB tag filters. Ex: {"host": ["web-01"], "environment": ["production"]}. Each tag value is an array of strings (logical OR). | |
| metric_name | Yes | Exact KairosDB metric name (e.g. server.cpu_usage, network.latency) | |
| response_format | No | markdown |