GithubHelp home page GithubHelp logo

skewie / azure-blob-storage-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from utf18/azure-blob-storage-exporter

0.0 0.0 0.0 15 KB

prometheus exporter for azure blob storage

License: MIT License

Dockerfile 6.45% Go 89.86% Makefile 3.68%

azure-blob-storage-exporter's Introduction

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

azure-blob-storage-exporter's People

Contributors

ben-st avatar utf18 avatar am3o avatar skewie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.