Skip to content

Commit

Permalink
Fixed up typo related to hostname vs. host_name.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarkowsky committed Nov 15, 2021
1 parent 4e82392 commit 34ece93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/santad/SNTApplicationCoreMetrics.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ static void RegisterMemoryAndCPUMetrics(SNTMetricSet *metricSet) {
}

static void RegisterHostnameAndUsernameLabels(SNTMetricSet *metricSet) {
[metricSet addRootLabel:@"hostname" value:[NSProcessInfo processInfo].hostName];
[metricSet addRootLabel:@"host_name" value:[NSProcessInfo processInfo].hostName];
[metricSet addRootLabel:@"username" value:NSUserName()];
[metricSet addRootLabel:@"job_name" value:@"santad"];
[metricSet addRootLabel:@"corp_site" value:@"roam"];
}

static void RegisterCommonSantaMetrics(SNTMetricSet *metricSet) {
Expand Down
2 changes: 1 addition & 1 deletion Source/santad/SNTApplicationCoreMetricsTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ - (void)testRegisteringCoreMetrics {
},
},
@"root_labels" : @{
@"hostname" : [NSProcessInfo processInfo].hostName,
@"host_name" : [NSProcessInfo processInfo].hostName,
@"job_name" : @"santad",
@"username" : [NSProcessInfo processInfo].userName
},
Expand Down

0 comments on commit 34ece93

Please sign in to comment.