@@ -130,7 +130,7 @@ const (
130
130
epSeries = apiPrefix + "/series"
131
131
epTargets = apiPrefix + "/targets"
132
132
epTargetsMetadata = apiPrefix + "/targets/metadata"
133
- epMetricsMetadata = apiPrefix + "/metadata"
133
+ epMetadata = apiPrefix + "/metadata"
134
134
epRules = apiPrefix + "/rules"
135
135
epSnapshot = apiPrefix + "/admin/tsdb/snapshot"
136
136
epDeleteSeries = apiPrefix + "/admin/tsdb/delete_series"
@@ -249,8 +249,8 @@ type API interface {
249
249
Targets (ctx context.Context ) (TargetsResult , error )
250
250
// TargetsMetadata returns metadata about metrics currently scraped by the target.
251
251
TargetsMetadata (ctx context.Context , matchTarget string , metric string , limit string ) ([]MetricMetadata , error )
252
- // MetricMetadata returns metadata about metrics currently scraped by the metric name.
253
- MetricsMetadata (ctx context.Context , metric string , limit string ) (map [string ][]Metadata , error )
252
+ // Metadata returns metadata about metrics currently scraped by the metric name.
253
+ Metadata (ctx context.Context , metric string , limit string ) (map [string ][]Metadata , error )
254
254
}
255
255
256
256
// AlertsResult contains the result from querying the alerts endpoint.
@@ -812,8 +812,8 @@ func (h *httpAPI) TargetsMetadata(ctx context.Context, matchTarget string, metri
812
812
return res , json .Unmarshal (body , & res )
813
813
}
814
814
815
- func (h * httpAPI ) MetricsMetadata (ctx context.Context , metric string , limit string ) (map [string ][]Metadata , error ) {
816
- u := h .client .URL (epMetricsMetadata , nil )
815
+ func (h * httpAPI ) Metadata (ctx context.Context , metric string , limit string ) (map [string ][]Metadata , error ) {
816
+ u := h .client .URL (epMetadata , nil )
817
817
q := u .Query ()
818
818
819
819
q .Set ("metric" , metric )
0 commit comments