Skip to content
/ xn2 Public

pull, synchronize and package data on interval.

License

Notifications You must be signed in to change notification settings

txn2/xn2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xn2

WIP: Pull, synchronize and package data on interval. Xn2 is a data scraper / muxer, combining data from multiple URLs defined by a set.

See the example configuration used for testing with docker-compose up: simple.yml

Build 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.

Demo / Tutorial

Demonstrating Xn2 with docker-compose up will stand up a fairly common data pipeline with three options for visualizing collected data:

Observe raw metrics collected by Xn2 at: http://localhost:8888/metrics

kubefwd - Kubernetes Port Forward Diagram

Development

Run demo from Xn2 source code:

docker-compose up --build

Run source with local config and no destination:

go run ./cmd/xn2.go --port 8282 --config ./config/xn2/local.yml

While running check prometheus metrics at https://localhost:8282/metrics

Release Management

Test release:

goreleaser --skip-publish --rm-dist --skip-validate

Release

GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist