dashmetrics

v0.1.0
io.github.CloudCorpRecords/dashmetrics Checked 19 hours ago Published 1 month ago

Grafana dashboards, datasources, Prometheus, Loki, and alerts from your MCP client.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_dashboards

Search Grafana dashboards and folders by title text.

ParameterTypeDescription
limitnumberOptional maximum number of search results to return (default 100, clamped to 1-5000).
querystringOptional title text to search for; dashboards and folders with a matching title are returned.
typestringOptional Grafana search result type filter, such as 'dash-db' for dashboards or 'dash-folder' for folders.

get_dashboard_by_uid

Get one dashboard by its uid, including panels and templating.

ParameterTypeDescription
uid *stringThe unique identifier (uid) of the dashboard to retrieve.

list_datasources

List all datasources configured in Grafana.

get_datasource_by_uid

Get one datasource by its uid.

ParameterTypeDescription
uid *stringThe unique identifier (uid) of the datasource to retrieve.

query_prometheus

Run a Prometheus range query through a datasource, returning the result matrix.

ParameterTypeDescription
datasourceUid *stringThe uid of the Prometheus datasource to query through.
expr *stringThe PromQL expression to evaluate over the time range.
endstringOptional end of the query time range, as accepted by the Prometheus query_range API; defaults to 'now' when omitted.
startstringOptional start of the query time range, as accepted by the Prometheus query_range API; defaults to 'now-1h' when omitted.
stepstringOptional query resolution step width, as a Prometheus duration string such as '15s' or '1m'; defaults to '15s' when omitted.

list_prometheus_metric_names

List Prometheus metric names from a datasource, optionally filtered by a regex.

ParameterTypeDescription
datasourceUid *stringThe uid of the Prometheus datasource to list metric names from.
regexstringOptional regular expression; only metric names matching it are returned (the filter is applied client-side).

list_prometheus_label_names

List Prometheus label names, optionally for one metric.

ParameterTypeDescription
datasourceUid *stringThe uid of the Prometheus datasource to list label names from.
metricstringOptional metric name; when given, only labels on series for that metric are listed (sent as the Prometheus match[] selector).

list_prometheus_label_values

List the values of one Prometheus label.

ParameterTypeDescription
datasourceUid *stringThe uid of the Prometheus datasource to list label values from.
label *stringThe name of the Prometheus label whose values are listed.
metricstringOptional metric name; when given, values are restricted to series for that metric (sent as the Prometheus match[] selector).

query_loki_logs

Query Loki logs with a LogQL expression over a time range.

ParameterTypeDescription
datasourceUid *stringThe uid of the Loki datasource to query through.
query *stringThe LogQL query expression selecting the log streams and lines to return.
endstringOptional end of the query time range, as accepted by the Loki query_range API.
limitnumberOptional maximum number of log lines to return (default 100, clamped to 1-5000).
startstringOptional start of the query time range, as accepted by the Loki query_range API.

list_loki_label_names

List Loki label names for a datasource.

ParameterTypeDescription
datasourceUid *stringThe uid of the Loki datasource to list label names from.

list_loki_label_values

List the values of one Loki label.

ParameterTypeDescription
datasourceUid *stringThe uid of the Loki datasource to list label values from.
label *stringThe name of the Loki label whose values are listed.

list_alert_rules

List provisioned Grafana alert rules.

ParameterTypeDescription
limitnumberOptional maximum number of alert rules to return; when omitted, all provisioned alert rules are returned.

get_alert_rule_by_uid

Get one provisioned alert rule by its uid.

ParameterTypeDescription
uid *stringThe unique identifier (uid) of the provisioned alert rule to retrieve.

list_contact_points

List provisioned Grafana contact points (alert notification receivers).

ParameterTypeDescription
limitnumberOptional maximum number of contact points to return; when omitted, all provisioned contact points are returned.