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

tcp_Client #189

Open
HesaMtiPu opened this issue Dec 11, 2023 · 5 comments
Open

tcp_Client #189

HesaMtiPu opened this issue Dec 11, 2023 · 5 comments

Comments

@HesaMtiPu
Copy link

HesaMtiPu commented Dec 11, 2023

I want to Plot graph of tcp_client from bind_exporter.
is there any option in bind_exporter ,If not please mark this as feature-request
this is rndc status .
+++++++++++++++++
recursive clients: 4/900/1000
✔ tcp clients: 3/150
TCP high-water: 6
server is up and running
+++++++++++++++
kindly Suggest.

@dswarbrick
Copy link
Member

The current TCP client count is not exposed via the HTTP statistics channels. The TCP high-water is available via http://localhost:8053/json/v1/server:

{
  "nsstats":{
    "TCPConnHighWater":32,

There are also socket stats available via http://localhost:8053/json/v1/net

{
  "json-stats-version":"1.8",
  "boot-time":"2024-02-04T17:26:28.754Z",
  "config-time":"2024-02-04T17:26:28.846Z",
  "current-time":"2024-02-14T22:12:37.821Z",
  "version":"9.19.19-1-Debian",
  "sockstats":{
    "UDP4Open":227854,
    "TCP4Open":1703,
    "UDP4Close":227846,
    "TCP4Close":121809,
    "TCP4ConnFail":1071,
    "UDP4Conn":227846,
    "TCP4Conn":622,
    "TCP4Accept":120118,
    "UDP4Active":10,
    "TCP4Active":16
  }
}

In both cases, bind_exporter does not currently implement parsing of these data.

@HesaMtiPu
Copy link
Author

So we cannot monitor and plot graphs of current TCP client count unless they are exposed via the HTTP statistics channels ?

@dswarbrick
Copy link
Member

So we cannot monitor and plot graphs of current TCP client count unless they are exposed via the HTTP statistics channels ?

I mean there is no feasible way currently to obtain that data with bind_exporter, since the HTTP statistics channel is the sole method employed by bind_exporter to fetch counters from BIND.

There are other means at your disposal, such as writing your own textfile collector script which called rndc status and parsing the desired output from that.

@HesaMtiPu
Copy link
Author

HesaMtiPu commented Feb 16, 2024

nsstats":{
"ReqTCP":0,
----±
Can you tell me what data it stores, because I thought this is the data I want. But this is not that statistic, I just want to know what data is stored in this parameter?

@dswarbrick
Copy link
Member

You can find detailed descriptions of name server statistics counters at https://bind9.readthedocs.io/en/latest/reference.html

ReqTCP
This indicates the number of TCP requests received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants