-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Ioannis Androulidakis <ioannis@arrikto.com>
- Loading branch information
Showing
34 changed files
with
1,483 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-module-coredns]] | ||
== coredns module | ||
|
||
beta[] | ||
|
||
This is the coredns module. | ||
|
||
|
||
|
||
[float] | ||
=== Example configuration | ||
|
||
The coredns module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: coredns | ||
metricsets: ["stats"] | ||
period: 10s | ||
hosts: ["localhost:9153"] | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-coredns-stats,stats>> | ||
|
||
include::coredns/stats.asciidoc[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-coredns-stats]] | ||
=== coredns stats metricset | ||
|
||
beta[] | ||
|
||
include::../../../module/coredns/stats/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-coredns,exported fields>> section. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Start from coredns base Docker image | ||
FROM coredns/coredns:latest | ||
|
||
# create an enhanced container with nc command available since coredns is based | ||
# on scratch image making healthcheck impossible | ||
FROM alpine:latest | ||
COPY --from=0 /coredns /coredns | ||
# Expose client, management, and cluster ports | ||
# For DNS | ||
EXPOSE 53 53/udp | ||
|
||
# For Prometheus metrics | ||
EXPOSE 9153 9153/tcp | ||
|
||
# Copy coredns configuration in container | ||
ADD config /etc/coredns | ||
|
||
RUN apk add --update --no-cache bind-tools | ||
|
||
# Check if the Coredns container is healthy | ||
HEALTHCHECK --interval=5s --retries=10 CMD dig @0.0.0.0 my.domain.org +dnssec >/dev/null | ||
|
||
# Start coredns with custom configuration file | ||
ENTRYPOINT ["/coredns"] | ||
CMD ["-conf", "/etc/coredns/Corefile"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- module: coredns | ||
metricsets: ["stats"] | ||
period: 10s | ||
hosts: ["localhost:9153"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- module: coredns | ||
metricsets: ["stats"] | ||
period: 10s | ||
hosts: ["localhost:9153"] |
Oops, something went wrong.