POST: /metadata/series-count

Count the number of time series matching a given filter.

application/json

Structure
Field Type Purpose
filter  Filter A filter to use when counting series.
range  QueryDateRange Range for which to count series.

Example Request


          {"filter": ["and", ["key", "system"], ["=", "role", "database"]]}

      

Example Curl


          $ curl -XPOST -H "Content-Type: application/json"
        http://localhost:8080/metadata/series-count \
          -d '{"filter": ["and", ["key", "system"], ["=", "role", "database"]]}'
      

Example 200 Response

Status: 200, Content-Type: application/json

          {
  "errors": [],
  "limited": false,
  "count": 10001
}