cockroachlabs / visus

Extended performance metrics
Apache License 2.0
7 stars 3 forks source link

Creating metrics from log messages. #102

Closed sravotto closed 4 months ago

sravotto commented 5 months ago

This change adds the ability of scanning log messages and incrementing counters every time a log message matches a given regular expression.

The CLI has a new subcommand scan to manage scans, similar to the existing subcommand for collections.

The store package has been updated with the CRUD operations to manage scans.

To simplify the management of the lifecycle of the various components, we introduced the stopper.Stopper used in replicator. The code that implements the Server interface has been refactored to take advantage of it.

A in-memory version of Store has been introduced to aid in testing.


This change is Reviewable

cockroach-teamcity commented 5 months ago

CLA assistant check
All committers have signed the CLA.

sravotto commented 4 months ago

This PR was broken down in smaller PRs.