{"id":18573952,"url":"https://github.com/subconsciousnetwork/nomad-otel-metrics-scraper","last_synced_at":"2025-05-15T23:34:15.741Z","repository":{"id":219166577,"uuid":"748344711","full_name":"subconsciousnetwork/nomad-otel-metrics-scraper","owner":"subconsciousnetwork","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-27T08:36:57.000Z","size":48,"stargazers_count":2,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T14:48:29.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subconsciousnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-01-25T19:24:07.000Z","updated_at":"2024-04-18T15:19:36.000Z","dependencies_parsed_at":"2024-02-22T03:23:44.111Z","dependency_job_id":"72e489b3-3d1e-42c6-8a7b-56050db6aa0e","html_url":"https://github.com/subconsciousnetwork/nomad-otel-metrics-scraper","commit_stats":null,"previous_names":["subconsciousnetwork/nomad-otel-metrics-scraper"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subconsciousnetwork%2Fnomad-otel-metrics-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subconsciousnetwork%2Fnomad-otel-metrics-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subconsciousnetwork%2Fnomad-otel-metrics-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subconsciousnetwork%2Fnomad-otel-metrics-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subconsciousnetwork","download_url":"https://codeload.github.com/subconsciousnetwork/nomad-otel-metrics-scraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442402,"owners_count":22071864,"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":[],"created_at":"2024-11-06T23:13:28.348Z","updated_at":"2025-05-15T23:34:15.697Z","avatar_url":"https://github.com/subconsciousnetwork.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gather job metrics from nomad\n\nNomad does not yet expose job-specific metrics (see [this\nissue](https://github.com/hashicorp/nomad/issues/16602)). This means it's not\npossible to set alarms like \"Hey, if my jobs have more than 2 replicas down,\nalert.\"\n\nThis tool fixes that issue by querying the nomad API for job-specific metrics\nand writing those to an [OTLP](https://opentelemetry.io/docs/specs/otel/protocol/) agent.\n\nI got the idea from https://github.com/strigo/nomad-service-discovery-exporter,\nbut it uses prometheus rather than OTLP.\n\n\n## Usage\n\n```text\nUsage: nomad-otel-metrics-scraper [OPTIONS]\n\nOptions:\n  -u, --nomad-url \u003cNOMAD_URL\u003e\n          URL of the nomad instance to contact [default: http://localhost:4646]\n  -n, --nomad-poll-interval \u003cNOMAD_POLL_INTERVAL\u003e\n          How often to query nomad [default: 60s]\n      --debug\n          Whether to print out the metrics we are publishing to stdout\n  -h, --help\n          Print help\n  -V, --version\n          Print version\n```\n\nThe OTel portions conform to the [Environment Variable Specification](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/) and can be adjusted accordingly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubconsciousnetwork%2Fnomad-otel-metrics-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubconsciousnetwork%2Fnomad-otel-metrics-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubconsciousnetwork%2Fnomad-otel-metrics-scraper/lists"}