Count the number of time series matching a given filter.
application/jsonField | Type | Purpose |
---|---|---|
filter
|
Filter
|
A filter to use when counting series. |
range
|
QueryDateRange
|
Range for which to count series. |
{"filter": ["and", ["key", "system"], ["=", "role", "database"]]}
$ curl -XPOST -H "Content-Type: application/json"
http://localhost:8080/metadata/series-count \
-d '{"filter": ["and", ["key", "system"], ["=", "role", "database"]]}'
{
"errors": [],
"limited": false,
"count": 10001
}