Coder Social home page Coder Social logo

agrrh / domain_exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caarlos0/domain_exporter

1.0 2.0 0.0 98 KB

Exports the expiration time of your domains as prometheus metrics.

License: MIT License

Dockerfile 0.91% Makefile 5.72% Go 93.37%

domain_exporter's Introduction

domain_exporter

Exports the expiration time of your domains as prometheus metrics.

Running

./domain_exporter -b ":9222"

Or with docker:

docker run -p 9222:9222 caarlos0/domain_exporter

Environment variables

  • DOMAIN_EXPORTER_URL_PREFIX - use when HTTP endpoint served with a prefix, e.g.:

    For this endpoint http://example.org/exporters/domains set to /exporters/domains.

    Not really required since useful only to prevent breaking human-oriented links.

    Defaults to empty string.

Configuration

On the prometheus settings, add the domain_exporter prober:

- job_name: domain
  metrics_path: /probe
  relabel_configs:
    - source_labels: [__address__]
      target_label: __param_target
    - source_labels: [__param_target]
      target_label: domain
    - target_label: __address__
      replacement: localhost:9222 # domain_exporter address
  static_configs:
    - targets:
      - carlosbecker.com
      - carinebecker.com
      - watchub.pw

It works more or less like prometheus's blackbox_exporter.

Alerting rules examples can be found on the _examples folder.

Building locally

Install the needed tooling and libs:

make setup

Run with:

go run main.go

Run tests with:

make test

domain_exporter's People

Contributors

caarlos0 avatar diogonicoleti avatar agrrh avatar whi-tw avatar czerasz avatar tmatias avatar q7r avatar

Stargazers

Max avatar

Watchers

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