{
  "id": "redis-di-get-metric-collection",
  "title": "redis-di get-metric-collection",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-get-metric-collection/",
  "summary": "Gets a metric collection of a pipeline",
  "tags": [
    "redis-di"
  ],
  "last_updated": "2026-07-13T12:40:14-05:00",
  "page_type": "content",
  "content_hash": "0338f642e49148a946d5d156dda1263f188134299c6f18ebb8efa18133499abb",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Gets a single metric collection of a pipeline, returning its raw metric data. This command is most\nuseful with `-o json` or `-o yaml` for scripting and for tools such as `jq`. Use\n[`list-metric-collections`](https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-list-metric-collections)\nto see the available collections."
    },
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]"
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "| Option | Description |\n| :-- | :-- |\n| `-p`, `--pipeline` | Pipeline to target (default `default`). |\n| `-o`, `--output` | Output format: `table` (default), `json`, or `yaml`. |\n\nThis command also accepts the\n[global options](https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di#global-options)."
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "usage-ex0",
      "language": "plaintext",
      "code": "redis-di get-metric-collection <name> [flags]",
      "section_id": "usage"
    },
    {
      "id": "example-ex0",
      "language": "bash",
      "code": "redis-di get-metric-collection processor -o json",
      "section_id": "example"
    }
  ]
}
