Skip to content

changing wrong formula to calculate percentages #22

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

Merged
merged 1 commit into from
Dec 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions github_app_for_splunk/default/savedsearches.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ search = | mstats avg(_value) as "Avg" WHERE `github_collectd` AND metric_name="
| eval metric_name=mvindex(split(metric_name,"."),2)\
| stats avg("disk_gb") as "Avg" by metric_name, host\
| xyseries host metric_name Avg\
| eval disk_util=(used/free)*100\
| eval disk_total=used+free\
| eval disk_util=(used/disk_total)*100\
| fields host disk_util

[GitHub Disk Utilization Over 85%]
Expand Down Expand Up @@ -82,7 +83,8 @@ search = | mstats avg(_value) as "Avg" WHERE `github_collectd` AND metric_name="
| eval metric_name=mvindex(split(metric_name,"."),2)\
| stats avg("disk_gb") as "Avg" by metric_name, host\
| xyseries host metric_name Avg\
| eval disk_util=(used/free)*100\
| eval disk_total=used+free\
| eval disk_util=(used/disk_total)*100\
| fields host disk_util

[GitHub Load Average Above 1]
Expand Down