Giter Club home page Giter Club logo

quay-exporter's Introduction

mtr.devops.telekom.de exporter

quay-exporter is a daemon exposing information about your mtr.devops.telekom.de repositories as Prometheus metrics. Those metrics can be then used to monitor the number and severity of vulnerabilities present in the docker images published in that service.

Install Instructions

Compiling from sources

To run the daemon locally, use:

$ go get github.com/leros321/quay-exporter
$ quay-exporter weaveworks

quay-exporter can access private repositories when provided with an OAUTH 2 bearer token using the -quay-token command line parameter.

Using the Docker image

Using quay-expoter from the published Docker image is one command away:

docker run -p 8080:8080 mtr.devops.telekom.de/damien.lespiau/quay-exporter weaveworks

Deploying on Kubernetes

A sample Deployment manifest is provided to deploy quay-exporter on a Kubernetes cluster:

kubectl -n monitoring apply -f quay-exporter-deploy.yaml

Visualize Metrics

To view the available metrics, point your browser at http://localhost:8080/metrics/:

quay_vulnerabilities{organization="weaveworks",os="debian:9",repository="build-golang",severity="critical"} 7

The latest tag of weaveworks/build-golang is running a Debian 9 image with 7 known critical vulnerabilities. Fortunately, build-golang is only used for building containers images, not running services! Also rebuilding the image will update the packages in the base image, which will fix the known vulnerabilities.

Troubleshooting

One can find more information about what the daemon is doing by increasing the log level:

$ quay-exporter -log-level debug  weaveworks

quay-exporter's People

Contributors

dlespiau avatar leros321 avatar

Watchers

James Cloos 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.