-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move metric constants to their own file
- Loading branch information
1 parent
27a3684
commit 0a54cd5
Showing
2 changed files
with
75 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package backend | ||
|
||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the Apache License 2.0. | ||
|
||
const ( | ||
metricPackage = "backend.openshiftcluster" | ||
metricValue int64 = 1 | ||
enabled = "Enabled" | ||
disabled = "Disabled" | ||
custom = "Custom" | ||
defaultSet = "Default" | ||
unknown = "unknown" | ||
empty = "empty" | ||
managed = "managed" | ||
|
||
encryptionAtHostMetricName = "encryptionathost" | ||
diskSizeMetricName = "disksize" | ||
vmSizeMetricName = "vmsize" | ||
countMetricName = "count" | ||
|
||
workerProfileMetricName = "workprofile" | ||
workerVmSizeMetricName = workerProfileMetricName + "." + vmSizeMetricName | ||
workerVmDiskSizeMetricName = workerProfileMetricName + "." + diskSizeMetricName | ||
workerEncryptionAtHostMetricName = workerProfileMetricName + "." + encryptionAtHostMetricName | ||
workerProfileCountMetricName = workerProfileMetricName + "." + countMetricName | ||
|
||
masterProfileMetricName = "masterprofile" | ||
masterEncryptionAtHostMetricName = masterProfileMetricName + "." + encryptionAtHostMetricName | ||
masterProfileEncryptionSetIdMetricName = masterProfileMetricName + "." + "diskencryptionsetid" | ||
masterProfileVmSizeMetricName = masterProfileMetricName + "." + vmSizeMetricName | ||
|
||
fipsMetricName = "fips" | ||
clusterIdentityMetricName = "clusteridentity" | ||
clusterIdentityManagedIdMetricName = managed + "id" | ||
clusterIdentityServicePrincipalMetricName = "serviceprincipal" | ||
pullSecretMetricName = "pullsecret" | ||
|
||
ingressProfileMetricName = "ingressprofile" | ||
networkProfileMetricName = "networkprofile" | ||
networkProfileOutboundTypeMetricName = networkProfileMetricName + "." + "outboundtype" | ||
networkProfileManagedOutboundIpsMetricName = networkProfileMetricName + "." + "managedoutboundips" | ||
networkProfilePreConfiguredNSGMetricName = networkProfileMetricName + "." + "preconfigurednsg" | ||
podCidrMetricName = networkProfileMetricName + "." + "podcidr" | ||
podCidrDefaultValue = networkProfileMetricName + "." + "10.128.0.0/14" | ||
serviceCidrMetricName = "servicecidr" | ||
serviceCidrDefaultValue = "172.30.0.0/16" | ||
|
||
featureProfileMetricName = "featureprofile" | ||
featureProfileGatewayEnabledMetricName = featureProfileMetricName + "." + "gatewayenabled" | ||
|
||
clusterProfileMetricName = "clusterprofile" | ||
clusterProfileDomainMetricName = clusterProfileMetricName + "." + "domain" | ||
|
||
tagsMetricName = "tags" | ||
operatorFlagsMetricName = "operatorflags" | ||
|
||
asyncOperationsIdMetricName = "async_operationsid" | ||
rpVersionMetricName = "rpversion" | ||
ocpVersionMetricName = "ocpversion" | ||
clusterNameMetricName = "clustername" | ||
resourecGroupMetricName = "resourcegroup" | ||
locationMetricName = "location" | ||
resourceIdMetricName = "resourceid" | ||
subscriptionIdMetricName = "subscriptionid" | ||
|
||
correlationDataMetricName = "correlationdata" | ||
correlationDataRequestIdMetricName = correlationDataMetricName + "." + "requestid" | ||
correlationDataClientRequestIdMetricName = correlationDataMetricName + "." + "client_requestid" | ||
correlationDataIdMetricName = correlationDataMetricName + "." + "correlationid" | ||
|
||
operationTypeMetricName = "operationtype" | ||
provisioningStateMetricName = "provisioningstate" | ||
resultTypeMetricName = "resulttype" | ||
) |