-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds prometheus export point to the agent pod. (#2983)
* Add metrics system (prometheus) to the agent. * Always have metrics, just doesnt do anything. * Add metrics for sniffer. * Add metrics for stealer. * How to install prometheus // Add more metrics to the reply * Do not register the gauge multiple times. * tcpoutgoing metrics * udpoutgoing metrics * docs * move metrics to modules * bump protocol * fix axum-server version * info -> trace * just have metrics atomics everywhere * drop actors * gate metrics behind config * use socketaddr * spawn inside spawn * error impl send * move where we inc subs for sniffer * no clone * dec things closer to remove * better help Co-authored-by: Michał Smolarek <[email protected]> * fix help Co-authored-by: Michał Smolarek <[email protected]> * no async file manager * split filtered unfiltered steal inc * remove unfiltered inc from wrong place * cancellation token * unit test for metrics * remove unused * rustfmt * schema * schema 2 * md * appease clippy * crypto provider for test * encode_to_string // cancellation on error * better error Co-authored-by: Michał Smolarek <[email protected]> * no more metricserror * outdated docs * connection metrics to run tasks * unused * remove todo * line Co-authored-by: Michał Smolarek <[email protected]> * inc not dec Co-authored-by: Michał Smolarek <[email protected]> * inc stream fd Co-authored-by: Michał Smolarek <[email protected]> * only dec once Co-authored-by: Michał Smolarek <[email protected]> * drop filemanager updates metrics * sniffer drop and update_packet_filter metrics * remove dec from extra sub case * move sub to PortSub add * drop for PortSubs, zero subs counter * new and drop for unfiltered task * remove inc from run * drop for filtered * docs * remove metrics from some places * cancel * near insert and remove * connection sub inc * connected clients * dns request * http in progress * protocol * http request in progress * dns * 2 new decs in tcp outgoing * dec fd twice * filtered port * some docs * improve error with display impl * Make UdpOutgoing look more like TcpOutgoing * AgentError everywhere * allow type complexity * Remove a few extra AgentResult * bump protocol * fix link doc * fix wrong doc * Put global gauges in state so tests dont explode. * Fix repeated value. * changelog * Dont use default registry. * no ignoring alreadyreg * lil docs * Remove example comments from readme. --------- Co-authored-by: Michał Smolarek <[email protected]>
- Loading branch information
Showing
49 changed files
with
1,856 additions
and
668 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add prometheus metrics to the mirrord-agent. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.