-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an option to enable metrics collection in sansshell-server (#219)
* add metrics instrumentations * init metric during server initialization * change metrics structure to allow registration * Remove comments * add comments * fix npe * Handle metric error. Add proxy metrics * handle metric error * handle err * rm irrelevant files * add this one back * add comments * metric desc variables * change singleton to contextbased * remove unused file * Delete launch.json * Add comments Correct otel metrics function definition * update comment and change otelrecorder to interface * add comments * add test for metrics package * fix comment and remove debug statement. * naming consistency * add comment, and change beahvior of RegisterInt64Gauge to allow overwriting gauge * fix comment * fix comment typo and inconsistency * add metrics recorder to sansshell server * server metrics endpoint * fix metric name * disable otelgrpc metrics collection * add method as an attribute of authzDeniedPolicyCounter * add to other authz failure counters
- Loading branch information
1 parent
6da9d98
commit 254fac1
Showing
4 changed files
with
95 additions
and
11 deletions.
There are no files selected for viewing
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