Get Service Metrics
get_service_metricsRetrieve custom metrics data for a specific Mackerel service, such as response times, page views, or sales counts, to monitor business KPIs and performance.
Instructions
Retrieve metrics data for a specific service from Mackerel.
š USE THIS TOOL WHEN USERS:
"Service metrics" are metrics that correspond to a service that consists of multiple hosts and their collective roles
The following can be visualized and monitored.
The total number of registered users in a service
The number of PVs for a website
Business related KPIs such as sales or the number of orders received from EC sites
š AVAILABLE METRIC NAMES:
Custom metrics: http.response_time, sales.count, analytics.page_view, etc.
Get service page views
get_service_metrics(serviceName="web", name="analytics.page_view", from=1609459200, to=1609462800)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The end of the time period you want metrics for (unix time) | |
| from | Yes | The start of the time period you want metrics for (unix time) | |
| name | Yes | Metric name (e.g., __externalhttp.responsetime.<monitorId>, sales.count, analytics.page_view, etc.) | |
| serviceName | Yes | Service name |