Coder Social home page Coder Social logo

docker-dns-exporter's Introduction

Project status

CI/CD on master Regular Docker image vulnerability scan

HomeCenter - DNS exporter

BIND9 DNS Prometheus exporter.

Usage

version: "3.7"
services:
  dns_exporter:
    build: .
    restart: unless-stopped
    ports:
      - "9119:9119/tcp"

Configuration

The exporter needs to know on which URL to look for the BIND9 statistics. The url should be passed by the command line argument -bind.stats-url.

The command line arguments also include an option to change the port on which the metrics are exposed. Do not do this as it breaks the health check. Instead map the port 9119 to any external port you like using Docker configuration.

Configuring BIND to expose statistics

BIND9 does not expose the statistics by default. You need to include the statistics-channels section in your named.conf file.

Environment variables

Name Default value Description
PUID 7077 UID of the user dns-exporter should be running as. The UID must have sufficient rights to read from the Docker socket.
PGID 7077 GID of the user dns-exporter should be running as. You must set the PUID if you want to set the PGID variable.
EXPORTER_ARGS Command line arguments for the exporter binary

Exposed ports

Port Description
9119/tcp Prometheus metrics over HTTP

Volumes

The container does not expose any volumes.

Security

The container is regularly scanned for vulnerabilities and updated. Further info can be found in the Security tab.

Container user

The container supports privilege drop. Even though the container starts as root, it will use the permissions only to perform the initial set up. The dns-exporter process runs as UID/GID provided in the PUID and PGID environment variables.

โš ๏ธ Do not change the container user directly using the user Docker compose property or using the --user argument. This would break the privilege drop logic.

docker-dns-exporter's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar lholota 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.