{"id":28405970,"url":"https://github.com/txn2/xn2","last_synced_at":"2025-07-07T02:40:14.402Z","repository":{"id":64302948,"uuid":"157294705","full_name":"txn2/xn2","owner":"txn2","description":"pull, synchronize and package data on interval. ","archived":false,"fork":false,"pushed_at":"2019-06-06T21:22:27.000Z","size":2864,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-02T07:13:25.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/txn2.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}},"created_at":"2018-11-13T00:08:14.000Z","updated_at":"2019-07-15T12:20:33.000Z","dependencies_parsed_at":"2023-01-15T09:45:23.194Z","dependency_job_id":null,"html_url":"https://github.com/txn2/xn2","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/txn2/xn2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fxn2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fxn2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fxn2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fxn2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txn2","download_url":"https://codeload.github.com/txn2/xn2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txn2%2Fxn2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264003265,"owners_count":23542594,"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":"2025-06-01T22:09:44.865Z","updated_at":"2025-07-07T02:40:14.397Z","avatar_url":"https://github.com/txn2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xn2\n\n**WIP**: Pull, synchronize and package data on interval. Xn2 is a data scraper / muxer, combining data from multiple URLs defined by a set.\n\nSee the example configuration used for testing with `docker-compose up`: [simple.yml](./config/xn2/simple.yml)\n\nBuild and test **xn2** with `docker-compose up`. `docker-compose` starts a fake api server and configures **xn2** poll metrics from it. **xn2** and all other services are monitored with **prometheus**.\n\n### Demo / Tutorial\n\nDemonstrating **Xn2** with `docker-compose up` will stand up a fairly common data pipeline with three options for visualizing collected data:\n\n- **Grafana**: UI exposed at: http://localhost:3000\n- **Kibana**: UI exposed at: http://localhost:5601\n- **Prometheus**: Graph UI exposed at: http://localhost:9090/graph\n\nObserve raw metrics collected by Xn2 at: http://localhost:8888/metrics\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"680\" height=\"879\" src=\"./assets/xn2_demo_diagram.png\" alt=\"kubefwd - Kubernetes Port Forward Diagram\"\u003e\n\u003c/p\u003e\n\n### Development\n\nRun demo from Xn2 source code:\n\n```bash\ndocker-compose up --build\n```\n\nRun source with local config and no destination:\n\n```bash\ngo run ./cmd/xn2.go --port 8282 --config ./config/xn2/local.yml\n```\n\nWhile running check **prometheus** metrics at https://localhost:8282/metrics\n\n\n### Release Management\n\nTest release:\n```bash\ngoreleaser --skip-publish --rm-dist --skip-validate\n```\n\nRelease\n```bash\nGITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Fxn2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxn2%2Fxn2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxn2%2Fxn2/lists"}