diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 5c2a200..4134b2f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -49,6 +49,8 @@ jobs: curl --fail http://127.0.0.1:9091/api/v1/query?query=nginx_requests | grep nginx_requests curl --fail http://127.0.0.1:9091/api/v1/query?query=redfish_thermal_fans_reading_rpm | grep redfish_thermal_fans_reading_rpm curl --fail http://127.0.0.1:9091/api/v1/query?query=disk_used_percent | grep disk_used_percent + curl --fail http://127.0.0.1:9091/api/v1/query?query=netstat_tcp_listen | grep netstat_tcp_listen + curl --fail http://127.0.0.1:9091/api/v1/query?query=dns_query_result_code | grep dns_query_result_code - name: Logs if: always() diff --git a/README.md b/README.md index 0dc6bc2..b4147e1 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,8 @@ curl --fail http://127.0.0.1:9091/api/v1/query?query=net_bytes_recv_total | grep curl --fail http://127.0.0.1:9091/api/v1/query?query=nginx_requests | grep nginx_requests curl --fail http://127.0.0.1:9091/api/v1/query?query=redfish_thermal_fans_reading_rpm | grep redfish_thermal_fans_reading_rpm curl --fail http://127.0.0.1:9091/api/v1/query?query=disk_used_percent | grep disk_used_percent +curl --fail http://127.0.0.1:9091/api/v1/query?query=netstat_tcp_listen | grep netstat_tcp_listen +curl --fail http://127.0.0.1:9091/api/v1/query?query=dns_query_result_code | grep dns_query_result_code ``` ## Running example diff --git a/config/telegraf.conf b/config/telegraf.conf index b5cc203..97d0859 100644 --- a/config/telegraf.conf +++ b/config/telegraf.conf @@ -35,6 +35,13 @@ [[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"] +[[inputs.netstat]] + # no configuration + +[[inputs.dns_query]] + servers = ["8.8.8.8"] + include_fields = ["all_ips"] + [[outputs.file]] files = ["stdout"] data_format = "influx"