@@ -207,9 +207,45 @@ curl -u "api_key:<Your Grafana.com API Key>" https://$base_out/tags/delSeries -d
207
207
```
208
208
209
209
### Finding Metrics
210
+ #### Non-tagged with ` /metrics/expand `
211
+
212
+ Returns metrics which match the ` query ` .
213
+
214
+ * Method: GET or POST
215
+ * API key type: any (including MetricsPublisher)
216
+
217
+ ##### Headers
218
+
219
+ * ` Authorization: Bearer <api-key> ` required
220
+
221
+ ##### Parameters
222
+
223
+ * query: required and may be specified multiple times [ Graphite pattern] ( #graphite-patterns )
224
+ * groupByExpr: if true, then the results get grouped by the query which yielded them, otherwise all results are in a flat list. (defaults to false)
225
+ * leavesOnly: if true, only leaf nodes get returned, if false branch nodes also get returned. (defaults to false)
226
+ * jsonp: true/false: enables jsonp
227
+
228
+ ##### Example
229
+
230
+ ``` sh
231
+ curl -H " Authorization: Bearer $key " " $base_out /metrics/expand?groupByExpr=true&query=some.id.of.a.metric.[1-3]&query=some.id.of.a.metric.[67]"
232
+ {
233
+ " some.id.of.a.metric.[1-3]" : [
234
+ " some.id.of.a.metric.1" ,
235
+ " some.id.of.a.metric.2" ,
236
+ " some.id.of.a.metric.3"
237
+ ],
238
+ " some.id.of.a.metric.[67]" : [
239
+ " some.id.of.a.metric.6" ,
240
+ " some.id.of.a.metric.7"
241
+ ]
242
+ }
243
+ ```
244
+
210
245
#### Non-tagged With ` /metrics/find `
211
246
212
- Returns metrics which match the ` query ` and have received an update since ` from ` .
247
+ Returns metrics which match the ` query ` and have received an update since ` from ` ,
248
+ de-duplicated by the last name node (used for the name auto-complete).
213
249
214
250
* Method: GET or POST
215
251
* API key type: any (including MetricsPublisher)
@@ -220,7 +256,7 @@ Returns metrics which match the `query` and have received an update since `from`
220
256
221
257
##### Parameters
222
258
223
- * query ( required): [ Graphite pattern] ( #graphite-patterns )
259
+ * query: required and may be specified multiple times [ Graphite pattern] ( #graphite-patterns )
224
260
* format: json, treejson, completer, pickle, or msgpack. (defaults to json)
225
261
* jsonp: true/false: enables jsonp
226
262
* from: Graphite from time specification (defaults to now-24hours)
0 commit comments