{"id":13582167,"url":"https://github.com/monitoring-mixins/mixtool","last_synced_at":"2025-04-06T14:30:26.106Z","repository":{"id":37411749,"uuid":"148791543","full_name":"monitoring-mixins/mixtool","owner":"monitoring-mixins","description":"mixtool is a helper for easily working with jsonnet mixins.","archived":false,"fork":false,"pushed_at":"2025-04-02T08:19:49.000Z","size":5578,"stargazers_count":140,"open_issues_count":23,"forks_count":15,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-02T09:27:55.829Z","etag":null,"topics":["go","golang","jsonnet"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monitoring-mixins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-14T13:21:08.000Z","updated_at":"2025-02-14T09:51:38.000Z","dependencies_parsed_at":"2023-11-16T14:29:46.785Z","dependency_job_id":"2d61918d-1158-446d-ac5b-1fe1254049c5","html_url":"https://github.com/monitoring-mixins/mixtool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitoring-mixins%2Fmixtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitoring-mixins%2Fmixtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitoring-mixins%2Fmixtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monitoring-mixins%2Fmixtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monitoring-mixins","download_url":"https://codeload.github.com/monitoring-mixins/mixtool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247495601,"owners_count":20948082,"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":["go","golang","jsonnet"],"created_at":"2024-08-01T15:02:28.058Z","updated_at":"2025-04-06T14:30:25.816Z","avatar_url":"https://github.com/monitoring-mixins.png","language":"Go","funding_links":[],"categories":["Go","golang","Repositories"],"sub_categories":[],"readme":"# mixtool\n\n\u003e NOTE: This project is *alpha* stage. Flags, configuration, behavior and design may change significantly in following releases.\n\nThe mixtool is a helper for easily working with [jsonnet](http://jsonnet.org/) mixins.\n\n## Install\n\nMake sure you're using golang v1.17 or higher, and run:\n\n```\ngo install github.com/monitoring-mixins/mixtool/cmd/mixtool@main\n```\n\n## Usage\n\nAll command line flags:\n\n[embedmd]:# (_output/help.txt)\n```txt\nNAME:\n   mixtool - Improves your jsonnet mixins workflow\n\nUSAGE:\n   mixtool [global options] command [command options] [arguments...]\n\nVERSION:\n   v0.1.0-pre\n\nDESCRIPTION:\n   mixtool helps with generating, building and linting jsonnet mixins\n\nCOMMANDS:\n   generate  Generate manifests from jsonnet input\n   lint      Lint jsonnet files\n   new       Create new jsonnet mixin files\n   server    Start a server to provision Prometheus rule file(s) with.\n   list      List all available mixins\n   install   Install a mixin\n   help, h   Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --help, -h     show help\n   --version, -v  print the version\n```\n\n### Generate\n[embedmd]:# (_output/help-generate.txt)\n```txt\nNAME:\n   mixtool generate - Generate manifests from jsonnet input\n\nUSAGE:\n   mixtool generate command [command options] [arguments...]\n\nCOMMANDS:\n   alerts      Generate Prometheus alerts based on the mixins\n   rules       Generate Prometheus rules based on the mixins\n   dashboards  Generate Grafana dashboards based on the mixins\n   all         Generate all resources - Prometheus alerts, Prometheus rules and Grafana dashboards\n\nOPTIONS:\n   --help, -h  show help\n   \n```\n\n### New\n\n[embedmd]:# (_output/help-new.txt)\n```txt\nNAME:\n   mixtool new - Create new files for Prometheus alerts \u0026 rules and Grafana dashboards as jsonnet mixin\n\nUSAGE:\n   mixtool new command [command options] [arguments...]\n\nCOMMANDS:\n   grafana-dashboard  Create a new file with a Grafana dashboard mixin inside\n   prometheus-alerts  Create a new file with Prometheus alert mixins inside\n   prometheus-rules   Create a new file with Prometheus rule mixins inside\n\nOPTIONS:\n   --help, -h  show help\n   \n```\n\n#### New Examples\n\n```bash\nmixtool new grafana-dashboard \u003e my-dashboard.jsonnet\nmixtool new prometheus-alerts \u003e my-alerts.jsonnet\nmixtool new prometheus-rules \u003e my-rules.jsonnet\n```\n\n### Lint\n\n[embedmd]:# (_output/help-lint.txt)\n```txt\nNAME:\n   mixtool lint - Lint jsonnet files\n\nUSAGE:\n   mixtool lint [command options] [arguments...]\n\nDESCRIPTION:\n   Lint jsonnet files for correct structure of JSON objects\n\nOPTIONS:\n   --grafana                Lint Grafana dashboards against Grafana's schema\n   --prometheus             Lint Prometheus alerts and rules and their given expressions\n   --jpath value, -J value  Add folders to be used as vendor folders\n   \n```\n\n#### Lint Examples\n\n```bash\n# This will lint the file for Prometheus alerts \u0026 rules and Grafana dashboards.\nmixtool lint prometheus.jsonnet\n\n# Don't lint Grafana dashboards.\nmixtool lint --grafana=false prometheus.jsonnet\n\n# Don't lint Prometheus alerts \u0026 rules.\nmixtool lint --prometheus=false prometheus.jsonnet\n\n# Lint multiple files sequentially.\nmixtool lint prometheus.jsonnet grafana.jsonnet\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonitoring-mixins%2Fmixtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonitoring-mixins%2Fmixtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonitoring-mixins%2Fmixtool/lists"}