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

Add load averages to metrics #90

Merged
merged 6 commits into from
Apr 20, 2023

Conversation

excalq
Copy link
Contributor

@excalq excalq commented Apr 20, 2023

This adds the following metrics, sourced from Logstash's API:

  • logstash_stats_process_cpu_load_average_1m
  • logstash_stats_process_cpu_load_average_5m
  • logstash_stats_process_cpu_load_average_15m

Additionally, tests, metric_names.txt and the README have updates.

scripts/add_metrics_to_readme.sh has a change to provide Bash 3.x (MacOS) and ZSH compatibility, as mapfile does not exist outside of Bash 4+. (Lmk if this should be in a separate PR).

@excalq excalq marked this pull request as ready for review April 20, 2023 02:08
@@ -38,11 +38,14 @@ type NodestatsCollector struct {

JvmUptimeMillis *prometheus.Desc

ProcessOpenFileDescriptors *prometheus.Desc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, go fmt did a lot of whitespace changes...

@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (3e7f98a) 100.00% compared to head (1414cbb) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #90   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          420       427    +7     
=========================================
+ Hits           420       427    +7     
Impacted Files Coverage Δ
collectors/nodestats/nodestats_collector.go 100.00% <100.00%> (ø)
prometheus_helper/prometheus_helper.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kuskoman kuskoman merged commit 6a07b31 into kuskoman:master Apr 20, 2023
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

Successfully merging this pull request may close these issues.

2 participants