Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose metrics from NGINX and Bind to Prometheus #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domai

EXPOSE 53/udp
EXPOSE 53/tcp
EXPOSE 8053/tcp

WORKDIR /scripts

5 changes: 5 additions & 0 deletions overlay/etc/bind/named.conf.options
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ options {
max-cache-ttl 0;
max-ncache-ttl 0;
forward only;
zone-statistics yes;

# Permit RFC1918 PTR lookups to be recursed upstream
empty-zones-enable no;
Expand All @@ -18,6 +19,10 @@ options {
#ENABLE_UPSTREAM_DNS#forwarders { dns_ip; };
};

statistics-channels {
inet 0.0.0.0 port 8053;
};

logging {
channel default_file {
file "/var/log/named/default.log" versions 3 size 5m;
Expand Down