Skip to content

Commit

Permalink
feat: added more telegraf plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin222004 <[email protected]>
  • Loading branch information
Kevin222004 authored and glimchb committed Jul 10, 2024
1 parent eba1aba commit f4dae5e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
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
curl --fail http://127.0.0.1:9091/api/v1/query?query=ethtool_duplex | grep ethtool_duplex
curl --fail http://127.0.0.1:9091/api/v1/query?query=kernel_boot_time_total | grep kernel_boot_time_total
- name: Logs
if: always()
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ curl --fail http://127.0.0.1:9091/api/v1/query?query=redfish_thermal_fans_readin
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
curl --fail http://127.0.0.1:9091/api/v1/query?query=ethtool_duplex | grep ethtool_duplex
curl --fail http://127.0.0.1:9091/api/v1/query?query=kernel_boot_time_total | grep kernel_boot_time_total
```

## Running example
Expand Down
7 changes: 7 additions & 0 deletions config/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
[[inputs.netstat]]
# no configuration

[[inputs.ethtool]]
down_interfaces = "skip"
interface_include = ["eth0"]

[[inputs.kernel]]
collect = ["psi"]

[[inputs.dns_query]]
servers = ["8.8.8.8"]
include_fields = ["all_ips"]
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ services:
- influxdb
networks:
- opi
cap_add:
- SYS_ADMIN
healthcheck:
test: cat /proc/1/status || exit 1
interval: 6s
Expand Down

0 comments on commit f4dae5e

Please sign in to comment.