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

tools: heapWatch metrics imported into Prometheus/Grafana #6147

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

algorandskiy
Copy link
Contributor

Summary

A script to import heapWatch's high frequency metrics into local Prometheus. Requires direct data directory access.

How to use:

# Convert metrics
python3 ./go-algorand/test/heapwatch/metrics_gra.py -d metrics/500x15/ -o prom-metrics.txt
# Import 
METRICS=$(realpath prom-metrics.txt)
cd ./prometheus-2.54.1.linux-amd64 && ./promtool tsdb create-blocks-from openmetrics $METRICS)

Then that Prometheus can be added as a Grafana source or used directly:

Grafana Prometheus
image image

Test Plan

Tested manually

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Project coverage is 56.27%. Comparing base (8b6c443) to head (5f255be).
Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
network/metrics.go 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6147      +/-   ##
==========================================
+ Coverage   56.25%   56.27%   +0.01%     
==========================================
  Files         494      494              
  Lines       69946    69948       +2     
==========================================
+ Hits        39350    39362      +12     
+ Misses      27919    27913       -6     
+ Partials     2677     2673       -4     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

1 participant