graph-snapper

module
v0.0.0-...-41b1600 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT

README

graph-snapper

Tool which takes snapshots of desired dashboards/graphs and stores them in the specified document store. Intended to capture Grafana data and store it in Confluence.

Generate swagger files:

swag init -g cmd/graph-snapper/main.go -o ./docs

Access swagger API:

${HOST}:{PORT}/swagger/index.html
ie. http://localhost:80/swagger/index.html

Run unit tests:

go test -short ./...

Run integration tests(requires docker):

go test -run Integration ./...

Run unit and integration(requires docker):

go test ./...

Build image:

./build/buildImage.sh

or 

docker build --build-arg "GIT_COMMIT=CustomCommit" --build-arg "CONFIG_FILE=deploy/graph-snapper-conf_standalone.json" --tag "portfolio-service:CUSTOM" -f build/Dockerfile .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL