2024-06-12 22:11:40 +03:00
|
|
|
package backend
|
|
|
|
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
|
|
// Licensed under the Apache License 2.0.
|
|
|
|
|
|
|
|
const (
|
2024-06-27 23:43:54 +03:00
|
|
|
metricPackage = "backend.openshiftcluster"
|
|
|
|
metricValue int64 = 1
|
|
|
|
enabled = "Enabled"
|
|
|
|
disabled = "Disabled"
|
|
|
|
custom = "Custom"
|
|
|
|
defaultSet = "Default"
|
|
|
|
unknown = "unknown"
|
|
|
|
empty = "empty"
|
|
|
|
managed = "managed"
|
|
|
|
metricFailToCollectErr = "failed to collect metric:"
|
2024-06-12 22:11:40 +03:00
|
|
|
|
|
|
|
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"
|
|
|
|
serviceCidrMetricName = networkProfileMetricName + "." + "servicecidr"
|
|
|
|
podCidrDefaultValue = "10.128.0.0/14"
|
|
|
|
serviceCidrDefaultValue = "172.30.0.0/16"
|
|
|
|
|
|
|
|
featureProfileMetricName = "featureprofile"
|
|
|
|
featureProfileGatewayEnabledMetricName = featureProfileMetricName + "." + "gatewayenabled"
|
|
|
|
|
|
|
|
clusterProfileMetricName = "clusterprofile"
|
|
|
|
clusterProfileDomainMetricName = clusterProfileMetricName + "." + "domain"
|
|
|
|
|
|
|
|
tagsMetricName = "tags"
|
|
|
|
operatorFlagsMetricName = "operatorflags"
|
|
|
|
|
|
|
|
asyncOperationsIdMetricName = "async_operationsid"
|
2024-06-27 23:43:54 +03:00
|
|
|
openshiftClusterMetricName = "openshiftcluster"
|
|
|
|
rpVersionMetricName = openshiftClusterMetricName + "." + "rpversion"
|
|
|
|
ocpVersionMetricName = openshiftClusterMetricName + "." + "ocpversion"
|
|
|
|
clusterNameMetricName = openshiftClusterMetricName + "." + "clustername"
|
|
|
|
clusterIdMetricName = openshiftClusterMetricName + "." + "clusterid"
|
|
|
|
resourecGroupMetricName = openshiftClusterMetricName + "." + "resourcegroup"
|
|
|
|
locationMetricName = openshiftClusterMetricName + "." + "location"
|
2024-06-12 22:11:40 +03:00
|
|
|
resourceIdMetricName = "resourceid"
|
|
|
|
subscriptionIdMetricName = "subscriptionid"
|
|
|
|
|
|
|
|
correlationDataMetricName = "correlationdata"
|
|
|
|
correlationDataRequestIdMetricName = correlationDataMetricName + "." + "requestid"
|
|
|
|
correlationDataClientRequestIdMetricName = correlationDataMetricName + "." + "client_requestid"
|
|
|
|
correlationDataIdMetricName = correlationDataMetricName + "." + "correlationid"
|
|
|
|
|
|
|
|
operationTypeMetricName = "operationtype"
|
|
|
|
provisioningStateMetricName = "provisioningstate"
|
|
|
|
resultTypeMetricName = "resulttype"
|
|
|
|
)
|