Giter Club home page Giter Club logo

ssl_certificate_exporter's Introduction

SSL Certificate Exporter

Exporter for SSL Certificate metrics https://prometheus.io/

Configuration

  1. Write the domain you want to check the expiration date of the ssl to JSON File.
{"domains":["example.com","example.net","example.org"],"isLocal":false}
  1. Hosting the JSON File to the web, such as Gist and S3.

  2. Specify it in the environment variable CONFIG_URL.

ex. https://gist.githubusercontent.com/s-aska/03c41cf0d3f8b369cf0ae80d02a26c02/raw/3c742b80c4c1c7e79fb6705cda19808efb8048eb/config.json

Run

Local machine

git clone [email protected]:s-aska/ssl_certificate_exporter.git
cd s-aska/ssl_certificate_exporter
go build
env \
    PORT=9100 \
    CONFIG_URL="https://.../config.json" \
    ./ssl_certificate_exporter

Heroku

Deploy

Docker

docker pull aska/ssl_certificate_exporter

docker run -e PORT=9100 \
    -e CONFIG_URL="https://.../config.json" \
    -p 9100:9100 \
    --name ssl_certificate_exporter \
    --rm \
    aska/ssl_certificate_exporter

Reloading configuration

curl -X POST http://XXX.XXX.XXX.XXX:9100/-/reload

Grafana (example)

Query: ssl_certificate_expires
Legend format: {{domain}}
Axes Left Y Unit: seconds(s)

Grafana

ssl_certificate_exporter's People

Contributors

cahlchang avatar s-aska avatar

Watchers

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