This project is mirrored from https://github.com/coredns/coredns.git. The repository failed to update .
Repository mirroring has been paused due to too many failed attempts, and can be resumed by a project maintainer.
Last successful update .
  1. 13 Nov, 2021 2 commits
    • Miek Gieben's avatar
      Metrics: expand coredns_dns_responses_total with plugin label (#4914) · 6953ab2b
      Miek Gieben authored
      * Metrics: expand coredns_dns_responses_total with plugin label
      
      This adds (somewhat hacky?) code to add a plugin label to the
      coredns_dns_responses_total metric. It's completely obvlious to the
      plugin as we just check who called the *recorder.WriteMsg method. We use
      runtime.Caller( 1 2 3) to get multiple levels of callers, this should be
      deep enough, but it depends on the dns.ResponseWriter wrapping that's
      occuring.
      
      README.md of metrics updates and test added in test/metrics_test.go to
      check for the label being set.
      
      I went through the plugin to see what metrics could be removed, but
      actually didn't find any, the plugin push out metrics that make sense.
      
      Due to the path fiddling to figure out the plugin name I doubt this
      works (out-of-the-box) for external plugins, but I haven't tested that.
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * better comment
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Metrics: expand coredns_dns_responses_total with plugin label
      
      This adds (somewhat hacky?) code to add a plugin label to the
      coredns_dns_responses_total metric. It's completely obvlious to the
      plugin as we just check who called the *recorder.WriteMsg method. We use
      runtime.Caller( 1 2 3) to get multiple levels of callers, this should be
      deep enough, but it depends on the dns.ResponseWriter wrapping that's
      occuring.
      
      README.md of metrics updates and test added in test/metrics_test.go to
      check for the label being set.
      
      I went through the plugin to see what metrics could be removed, but
      actually didn't find any, the plugin push out metrics that make sense.
      
      Due to the path fiddling to figure out the plugin name I doubt this
      works (out-of-the-box) for external plugins, but I haven't tested that.
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Update core/dnsserver/server.go
      Co-authored-by: default avatardilyevsky <ilyevsky@gmail.com>
      
      * Use [3]string
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * imports
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * remove dnstest changes
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * revert
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Add some sleeps to make it less flaky
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * Revert "Add some sleeps to make it less flaky"
      
      This reverts commit b5c6655196e3ad570555f086832ceb1f48f6f2d5.
      
      * Remove forward when not needed
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      
      * remove newline
      Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
      Co-authored-by: default avatardilyevsky <ilyevsky@gmail.com>
      6953ab2b
    • Chris O'Haver's avatar
      plugin/loadbalance: More consistent shuffling (#4961) · 29cae579
      Chris O'Haver authored
      * fix shuffling
      Signed-off-by: default avatarChris O'Haver <cohaver@infoblox.com>
      
      * shuffle each record once
      Signed-off-by: default avatarChris O'Haver <cohaver@infoblox.com>
      29cae579
  2. 11 Nov, 2021 1 commit
  3. 10 Nov, 2021 2 commits
  4. 08 Nov, 2021 5 commits
  5. 07 Nov, 2021 1 commit
  6. 02 Nov, 2021 1 commit
  7. 01 Nov, 2021 4 commits
  8. 28 Oct, 2021 1 commit
  9. 27 Oct, 2021 1 commit
  10. 26 Oct, 2021 1 commit
  11. 25 Oct, 2021 3 commits
  12. 24 Oct, 2021 1 commit
  13. 19 Oct, 2021 2 commits
  14. 13 Oct, 2021 1 commit
  15. 11 Oct, 2021 2 commits
  16. 09 Oct, 2021 2 commits
  17. 08 Oct, 2021 1 commit
  18. 07 Oct, 2021 3 commits
  19. 06 Oct, 2021 1 commit
  20. 04 Oct, 2021 3 commits
  21. 01 Oct, 2021 1 commit
  22. 30 Sep, 2021 1 commit