MCPcopy
hub / github.com/grafana/grafana / GetMetrics

Method GetMetrics

apps/dashvalidator/pkg/cache/provider.go:16–16  ·  view source on GitHub ↗

GetMetrics fetches available metric names from the datasource. Returns the metrics list and recommended TTL for caching. The client parameter should have proper authentication configured.

(ctx context.Context, datasourceUID, datasourceURL string,
		client *http.Client)

Source from the content-addressed store, hash-verified

14 // Returns the metrics list and recommended TTL for caching.
15 // The client parameter should have proper authentication configured.
16 GetMetrics(ctx context.Context, datasourceUID, datasourceURL string,
17 client *http.Client) (*MetricsResult, error)
18}
19

Implementers 7

MetricsCacheapps/dashvalidator/pkg/cache/cache.go
mockProviderapps/dashvalidator/pkg/cache/cache_tes
mockURLProviderapps/dashvalidator/pkg/cache/cache_tes
PrometheusProviderapps/dashvalidator/pkg/validator/prome
mockProviderapps/dashvalidator/pkg/validator/prome
FakePublicDashboardStorepkg/services/publicdashboards/internal
PublicDashboardStoreImplpkg/services/publicdashboards/internal

Calls

no outgoing calls