azure-blob-storage-exporter

command module
v0.0.0-...-ea1dc3a Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 11 Imported by: 0

README

azure-blob-storage-exporter

prometheus exporter for azure blob storage

lists blobs in given container with their size in bytes and creation time in unix timestamp

Getting Started

prerequisites:

you have to set the following environment variables:

export storageAccountName="storage-account-name"
export storageAccountKey="storage-account-access-key"
export blobContainerName="container-name"

To run it:

./azure-blob-storage-exporter

Help on flags:

there is only one flag available: port

it will change the default port which is 8080

./azure-blob-storage-exporter -port="port_number"
Docker

Link to the Docker Hub Repository azure-blob-storage-exporter

To run the exporter as a Docker container, run:

docker run -p 8080:8080 -e storageAccountName="storage-account-name" -e storageAccountKey="storage-account-access-key" -e blobContainerName="container-name" benst/azure-blob-storage-exporter:0.1.0
Building

simply build it with: make or make build

or if you want a local docker image: make docker-build

if you don't like Makefiles you can do it yourself with:

go build -ldflags "-X main.version=0.1.0" -o azure-blob-storage-exporter

or with docker:

docker build --build-arg version=0.1.0 -t azure-blob-storage-exporter:latest .

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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