{"id":18918673,"url":"https://github.com/sparkmeter/nquery","last_synced_at":"2025-04-15T10:33:05.891Z","repository":{"id":38330247,"uuid":"301583308","full_name":"sparkmeter/nquery","owner":"sparkmeter","description":"Query and explore your Nomad clusters","archived":false,"fork":false,"pushed_at":"2023-01-20T22:46:22.000Z","size":64,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-31T11:40:30.525Z","etag":null,"topics":["cli","hacktoberfest","hashicorp","nomad","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sparkmeter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-06T01:31:01.000Z","updated_at":"2022-04-27T19:52:50.000Z","dependencies_parsed_at":"2023-02-12T06:16:24.616Z","dependency_job_id":null,"html_url":"https://github.com/sparkmeter/nquery","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fnquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fnquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fnquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparkmeter%2Fnquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparkmeter","download_url":"https://codeload.github.com/sparkmeter/nquery/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223669064,"owners_count":17183030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","hacktoberfest","hashicorp","nomad","rust"],"created_at":"2024-11-08T10:33:02.753Z","updated_at":"2024-11-08T10:33:03.721Z","avatar_url":"https://github.com/sparkmeter.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/sparkmeter/nquery/workflows/CI/badge.svg)](https://github.com/sparkmeter/nquery/actions?query=workflow%3ACI)\n[![Latest version](https://img.shields.io/crates/v/nquery.svg?style=flat)](https://crates.io/crates/nquery)\n\n# nquery\nQuery and explore jobs on your Nomad clusters from the comfort of the command line.\n\nThe output is raw JSON, to facilitate integration with tooling such\nas [`jq`](https://stedolan.github.io/jq/).\n\n## Usage\n\n```bash\n# Get all jobs with IDs starting with 'redis' as pretty-printed JSON\n$ nquery --pretty redis\n[\n  {\n    \"ID\": \"redis\",\n    \"Name\": \"redis\",\n    \"Namespace\": \"default\",\n    \"ParameterizedJob\": null,\n    # ...\n    \"TaskGroups\": [\n      {\n        # ...\n        \"Tasks\": [\n           {\n              # ...\n              \"Meta\": null,\n              \"Name\": \"redis\",\n           }\n        ]\n      }\n    ]\n  }\n]\n\n\n# Get the ID and task data-source fields of all parameterized jobs starting with etl\n$ nquery --pretty --parameterized -f Meta.data-source etl\n[\n  {\n    \"ID\": \"etl-cluster-1\"\n    \"Meta.data-source\": \"db-cluster-1\",\n  },\n  {\n    \"ID\": \"etl-cluster-2\"\n    \"Meta.data-source\": \"db-cluster-2\",\n  }\n]\n\n# Count the number of ETL tasks\n$ nquery --parameterized -f Meta.data-source etl | jq '. | length'\n```\n\n## Installation\n\n[Download the latest binary for your platform from the releases page](https://github.com/sparkmeter/nquery/releases).\n\nor, with Cargo:\n\n```bash\ncargo install nquery\n```\n\n\n## Debugging\n\nTo get helpful debugging information, run nquery with the `NQUERY_LOG=nquery`\nenvironment variable set.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkmeter%2Fnquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparkmeter%2Fnquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkmeter%2Fnquery/lists"}