Monitor to export fuzzer metrics to Prometheus server#875
Merged
domenukk merged 12 commits intoAFLplusplus:mainfrom Nov 7, 2022
Merged
Monitor to export fuzzer metrics to Prometheus server#875domenukk merged 12 commits intoAFLplusplus:mainfrom
domenukk merged 12 commits intoAFLplusplus:mainfrom
Conversation
… are intermittently updated and exposed on /metrics
…ent. add clients_count as a tracked metric
… such as edges count. cleaned up code
Member
|
This is great! Just a few nits from CI that shouldn't take long:
|
Mrmaxmeier
reviewed
Nov 1, 2022
domenukk
reviewed
Nov 1, 2022
| self.total_execs(), | ||
| self.execs_per_sec() | ||
| ); | ||
| (self.print_fn)(fmt); |
Member
There was a problem hiding this comment.
For this we potentially want the option to stack/join multiple monitors, so that the prometheus monitor doesn't have to print direclty (and could also offer a tui), what do you think @andreafioraldi
Member
There was a problem hiding this comment.
there is akready the json on disk monitor that iirc does that as example
Member
There was a problem hiding this comment.
I was thinking of a monitor that wraps two monitors
…metheus_monitor feature
Member
|
@andreafioraldi seems like your blob search does not ignore ./target? |
Member
|
target should be in the gitignore |
Contributor
Author
Just checked and |
Member
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements a monitor (prometheus.rs) to take fuzzer statistics (as well as user defined ones) and host them on a web server in the OpenMetrics format. This is defined within a fuzzer as so:
A prometheus server can then be pointed at the user defined IP:PORT to scrape it every

nseconds from withinprometheus.yml. For dashboards/graphs, prometheus can then be added as a source within something like Grafana.An example Grafana dashboard may look like this for (2 LibAFL fuzzers running and a prometheus node_exporter for system metrics):