Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental metrics #1238

Merged
merged 4 commits into from
Nov 20, 2023
Merged

Experimental metrics #1238

merged 4 commits into from
Nov 20, 2023

Conversation

mlw
Copy link
Contributor

@mlw mlw commented Nov 20, 2023

This is experimental code only and will be stripped out before the next release.

Sample metric output:

  Metric Name               | /santa/tmp_signing_info_experiment
 Description               | Temporary experiment for dev signed code
 Type                      | SNTMetricTypeCounter
 Field                     | CSDevFlagSet=False,ValidationCategory=False,DevOIDSet=False
 Created                   | 2023-11-20T15:46:32.345Z
 Last Updated              | 2023-11-20T15:57:55.462Z
 Data                      | 58
 Field                     | CSDevFlagSet=True,ValidationCategory=True,DevOIDSet=True
 Created                   | 2023-11-20T15:55:42.191Z
 Last Updated              | 2023-11-20T15:55:42.191Z
 Data                      | 1

Sample log line (note: test code changed to force this output, wouldn't normally display since no delta exists):

I com.google.santa.daemon: EXPERIMENTAL Unexpected state difference: /bin/ls | Flags(0): 0x22013b11, VC(0): 1, oids(0): (
    "2.16.840.1.113741.2.1.1.1.6",
    "2.5.29.14",
    "2.16.840.1.113741.2.1.3.2.1",
    "2.16.840.1.113741.2.1.1.1.7",
    "2.5.29.32",
    "2.16.840.1.113741.2.1.3.2.2",
    "2.16.840.1.113741.2.1.1.1.8",
    "1.2.840.113635.100.6.22",
    "2.16.840.1.113741.2.1.1.1.10",
    "2.16.840.1.113741.2.1.1.1.2",
    "2.16.840.1.113741.2.1.1.1.9",
    "2.5.29.15",
    "2.5.4.3",
    "2.5.29.19",
    "2.16.840.1.113741.2.1.1.1.3",
    "2.5.29.24",
    Fingerprints,
    "2.5.29.31",
    "2.5.29.35",
    "2.5.29.37",
    "2.16.840.1.113741.2.1.1.1.5"
)

@mlw mlw added metrics Code / work related to Santa observability / monitoring santad Work related to the Santa Daemon testing labels Nov 20, 2023
@mlw mlw requested a review from a team as a code owner November 20, 2023 16:04
Copy link
Contributor

@pmarkowsky pmarkowsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mlw mlw merged commit f499654 into google:main Nov 20, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
metrics Code / work related to Santa observability / monitoring santad Work related to the Santa Daemon testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants