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

[Task] <support monitoring dns server metrics> #1397

Closed
2 tasks
tomsun28 opened this issue Dec 6, 2023 · 8 comments · Fixed by #1416
Closed
2 tasks

[Task] <support monitoring dns server metrics> #1397

tomsun28 opened this issue Dec 6, 2023 · 8 comments · Fixed by #1416
Assignees

Comments

@tomsun28
Copy link
Contributor

tomsun28 commented Dec 6, 2023

Description

support monitoring dns server metrics, available and more

Task List

  • support monitoring dns server metrics
  • add help doc
@Calvin979
Copy link
Contributor

I would like to help!

@hertzbeat
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I would like to help!

@tomsun28
Copy link
Contributor Author

tomsun28 commented Dec 6, 2023

I would like to help!

👍 hi, this has assigned to you.

@Calvin979
Copy link
Contributor

I would like to help!

👍 hi, this has assigned to you.

Thank you!

@Calvin979
Copy link
Contributor

Hi, Tom. I have some questions to be confirmed. Yesterday I've found two ways to monitor dns server.

  1. Use commands to dns server, and collect data which dns server response.
    https://www.cnblogs.com/pengdai/p/16570903.html#_label2_0
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd197470(v=ws.10)#dns-query-message-format

I also code a demo for this, here's the output result:
image

  1. Collecting data like how Prometheus do
    https://github.com/prometheus-community/bind_exporter
    https://computingforgeeks.com/monitor-bind-dns-server-with-prometheus-grafana/
    Run a script on dns server, then interact with it. In my opinion, it seems doesn't fit hertzbeat's feature - Easy to use and agentless

Should I use the first way to monitor dns server? Or do you have any better suggestion?
@tomsun28

@tomsun28
Copy link
Contributor Author

tomsun28 commented Dec 8, 2023

@Calvin979 hi👍 suggest we do not need run a script on dns server. The first way is better. But other question is the command dig www.xxx.com is supported by all os.
How about the solution like this? We use Java Code to send dns protocol messages to the dns server, and then obtain the dns server response message as metrics data. And we also do not need care about the comman dig xxx is useful.
https://github.com/dnsjava/dnsjava

@Calvin979
Copy link
Contributor

@tomsun28 Thanks for your suggestion. I know how to collect dns server metrics!
dnsjava is the library I use in my demo as well.

@hertzbeat
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


#1416

@tomsun28 tomsun28 linked a pull request Dec 10, 2023 that will close this issue
5 tasks
tomsun28 pushed a commit that referenced this issue Dec 10, 2023
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Jan 16, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 9, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 9, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 10, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 10, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 11, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 11, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 11, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
tomsun28 pushed a commit that referenced this issue Mar 11, 2024
Co-authored-by: zhengqiwei <zhengqiwei@wxchina.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants