You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DataSourceUIDstring`json:"data_source_uid" jsonschema:"required,description=The UID of the datasource to query"`
234
-
ProfileTypestring`json:"profile_type" jsonschema:"required,description=Type profile type\\, use the list_pyroscope_profile_types tool to fetch available profile types"`
235
-
Matchersstring`json:"matchers,omitempty" jsonschema:"description=Optionally\\, Prometheus style matchers used to filter the result set (defaults to: {})"`
236
-
MaxNodeDepthint`json:"max_node_depth,omitempty" jsonschema:"description=Optionally\\, the maximum depth of nodes in the resulting profile. Less depth results in smaller profiles that execute faster\\, more depth result in larger profiles that have more detail. A value of -1 indicates to use an unbounded node depth (default: 100). Reducing max node depth from the default will negatively impact the accuracy of the profile"`
237
-
StartRFC3339string`json:"start_rfc_3339,omitempty" jsonschema:"description=Optionally\\, the start time of the query in RFC3339 format (defaults to 1 hour ago)"`
238
-
EndRFC3339string`json:"end_rfc_3339,omitempty" jsonschema:"description=Optionally\\, the end time of the query in RFC3339 format (defaults to now)"`
- "both" (default): returns both profile and metrics in one response
449
+
`
450
+
451
+
varQueryPyroscope=mcpgrafana.MustTool(
452
+
"query_pyroscope",
453
+
queryPyroscopeToolPrompt,
454
+
queryPyroscope,
455
+
mcp.WithTitleAnnotation("Query Pyroscope"),
456
+
mcp.WithIdempotentHintAnnotation(true),
457
+
mcp.WithReadOnlyHintAnnotation(true),
458
+
)
459
+
460
+
typeQueryPyroscopeParamsstruct {
461
+
DataSourceUIDstring`json:"data_source_uid" jsonschema:"required,description=The UID of the datasource to query"`
462
+
ProfileTypestring`json:"profile_type" jsonschema:"required,description=The profile type\\, use list_pyroscope_profile_types to discover available types"`
463
+
QueryTypestring`json:"query_type,omitempty" jsonschema:"description=Query type: \"profile\" (flamegraph)\\, \"metrics\" (time-series)\\, or \"both\" (default). Use \"both\" for complete analysis"`
464
+
Matchersstring`json:"matchers,omitempty" jsonschema:"description=Prometheus style matchers (defaults to: {})"`
465
+
GroupBy []string`json:"group_by,omitempty" jsonschema:"description=Labels to group metrics series by"`
466
+
Stepfloat64`json:"step,omitempty" jsonschema:"description=Seconds between metrics data points (default: auto)"`
467
+
MaxNodeDepthint`json:"max_node_depth,omitempty" jsonschema:"description=Max depth for profile call graph (default: 100)"`
468
+
StartRFC3339string`json:"start_rfc_3339,omitempty" jsonschema:"description=Start time in RFC3339 (defaults to 1 hour ago)"`
469
+
EndRFC3339string`json:"end_rfc_3339,omitempty" jsonschema:"description=End time in RFC3339 (defaults to now)"`
0 commit comments