You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patterns heavily riffed from the sunlight codebase.
Standard go and process stats are collected,
and custom stats: these include the number of logs monitored,
how large they are, how long requests are taking to service, etc.
The prefix levels on the metrics might be a little high;
what I'm following here is the sunlight project's distinction
between the command's whole metrics, and the witness component.
Right now, the only metrics I've introduced to litewitness are on
the witness component (and that sounds doubly redundant due to
the project name), but that might not remain the case forever.
I disable the exposure of the metrics endpoint if the obscurity mode flag is engaged.
Some metrics do contain log names, and so it matches the same enumeration
concern that obscurity mode describes as its purpose.
(Possibly future work: I'm not super satisfied with how sometimes
the logging labels and the prometheus labels have parallel evolution,
for example in `processAddCheckpointRequest`.
But attempting to unify those feels like a potential portal to frameworkitis,
so leaving that as a future itch to scratch. Or, perhaps not.)
Closes#5
0 commit comments