public GetChildrenPerformanceInstrumentation(IMetricsFactory metricsFactory)
 {
     this.getChildrenFailure     = metricsFactory.Create0D("getChildrenFailure");
     this.getChildrenSuccess     = metricsFactory.Create0D("getChildrenSuccess");
     this.getChildrenResultCount = metricsFactory.Create0D("getChildrenResultCount");
     this.getChildrenLatencyMs   = metricsFactory.Create0D("getChildrenLatencyMs");
 }
Example #2
0
 public SetDataPerformanceInstrumentation(IMetricsFactory metricsFactory)
 {
     this.setDataSuccess     = metricsFactory.Create0D("setDataSuccess");
     this.setDataFailure     = metricsFactory.Create0D("setDataFailure");
     this.setDataLatency     = metricsFactory.Create0D("setDataLatencyMs");
     this.setDataNodesLoaded = metricsFactory.Create0D("setDataNodesLoaded");
 }
 public DeletePerformanceInstrumentation(IMetricsFactory metricsFactory)
 {
     this.deleteSuccess   = metricsFactory.Create0D("deleteSuccess");
     this.deleteFailure   = metricsFactory.Create0D("deleteFailure");
     this.deleteLatencyMs = metricsFactory.Create0D("deleteLatencyMs");
     this.deleteNodeCount = metricsFactory.Create0D("deleteNodeCount");
 }
Example #4
0
 public WatcherPerformanceInstrumentation(IMetricsFactory metricsFactory)
 {
     this.nodesLoaded         = metricsFactory.Create0D("watcherPerformanceTestNodesLoaded");
     this.setWatcherFailed    = metricsFactory.Create0D("setWatcherFailed");
     this.setWatcherSucceeded = metricsFactory.Create0D("setWatcherSucceded");
     this.setWatcherLatencyMs = metricsFactory.Create0D("setWatcherLatencyMs");
     this.watcherNotified     = metricsFactory.Create1D("watcherNotified", "notificationType");
 }
 public ConnectPerformanceInstrumentation(IMetricsFactory metricsFactory)
 {
     this.totalConnectionsCreated = metricsFactory.Create0D("totalConnectionsCreated");
     this.connectionEstablished   = metricsFactory.Create0D("connectionEstablished");
     this.connectionFailed        = metricsFactory.Create0D("connectionFailed");
     this.connectionClosed        = metricsFactory.Create0D("connectionClosed");
     this.connectionSetupTimeMs   = metricsFactory.Create0D("connectionSetupTimeMs");
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="RingMasterServerInstrumentation"/> class.
        /// </summary>
        /// <param name="metricsFactory">Metrics factory for getting notification of internal state</param>
        public RingMasterServerInstrumentation(IMetricsFactory metricsFactory)
        {
            if (metricsFactory == null)
            {
                throw new ArgumentNullException(nameof(metricsFactory));
            }

            this.sessionCreated  = metricsFactory.Create1D(nameof(this.sessionCreated), "client");
            this.sessionClosed   = metricsFactory.Create1D(nameof(this.sessionClosed), "client");
            this.responseTime    = metricsFactory.Create1D(nameof(this.responseTime), "requestType");
            this.badRequests     = metricsFactory.Create0D(nameof(this.badRequests));
            this.watcherSet      = metricsFactory.Create0D(nameof(this.watcherSet));
            this.watcherNotified = metricsFactory.Create0D(nameof(this.watcherNotified));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ServiceFabricPersistenceInstrumentation"/> class.
        /// </summary>
        /// <param name="metricsFactory">Metrics factory</param>
        public ServiceFabricPersistenceInstrumentation(IMetricsFactory metricsFactory)
        {
            if (metricsFactory == null)
            {
                throw new ArgumentNullException(nameof(metricsFactory));
            }

            this.addRequested    = metricsFactory.Create0D(nameof(this.addRequested));
            this.updateRequested = metricsFactory.Create0D(nameof(this.updateRequested));
            this.removeRequested = metricsFactory.Create0D(nameof(this.removeRequested));

            this.loadTreeCompleted = metricsFactory.Create0D(nameof(this.loadTreeCompleted));
            this.loadTreeTime      = metricsFactory.Create0D(nameof(this.loadTreeTime));

            this.processLoadCompleted   = metricsFactory.Create0D(nameof(this.processLoadCompleted));
            this.processAddCompleted    = metricsFactory.Create0D(nameof(this.processAddCompleted));
            this.processUpdateCompleted = metricsFactory.Create0D(nameof(this.processUpdateCompleted));
            this.processRemoveCompleted = metricsFactory.Create0D(nameof(this.processRemoveCompleted));
            this.processLoadFailed      = metricsFactory.Create0D(nameof(this.processLoadFailed));
            this.processAddFailed       = metricsFactory.Create0D(nameof(this.processAddFailed));
            this.processUpdateFailed    = metricsFactory.Create0D(nameof(this.processUpdateFailed));
            this.processRemoveFailed    = metricsFactory.Create0D(nameof(this.processRemoveFailed));

            this.dictionaryEntriesEnumerated       = metricsFactory.Create0D(nameof(this.dictionaryEntriesEnumerated));
            this.processDictionaryRebuildCompleted = metricsFactory.Create0D(nameof(this.processDictionaryRebuildCompleted));
            this.processDictionaryRebuildTime      = metricsFactory.Create0D(nameof(this.processDictionaryRebuildTime));
            this.processDictionaryRebuildFailed    = metricsFactory.Create0D(nameof(this.processDictionaryRebuildFailed));

            this.totalNodes    = metricsFactory.Create0D(nameof(this.totalNodes));
            this.totalDataSize = metricsFactory.Create0D(nameof(this.totalDataSize));

            this.transactionCommitted     = metricsFactory.Create0D(nameof(this.transactionCommitted));
            this.lastCommittedTransaction = metricsFactory.Create0D(nameof(this.lastCommittedTransaction));
            this.lastCommitSequenceNumber = metricsFactory.Create0D(nameof(this.lastCommitSequenceNumber));

            this.changeListCommitted    = metricsFactory.Create0D(nameof(this.changeListCommitted));
            this.changeListCommitFailed = metricsFactory.Create0D(nameof(this.changeListCommitFailed));
            this.changeListAborted      = metricsFactory.Create0D(nameof(this.changeListAborted));
            this.changeListCommitTime   = metricsFactory.Create0D(nameof(this.changeListCommitTime));

            this.dataLoaded      = metricsFactory.Create0D(nameof(this.dataLoaded));
            this.duplicatesFound = metricsFactory.Create0D(nameof(this.duplicatesFound));
            this.orphansFound    = metricsFactory.Create0D(nameof(this.orphansFound));
        }
Example #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RingMasterBackendInstrumentation"/> class.
        /// </summary>
        /// <param name="metricsFactory">Interface that can be used to create metrics</param>
        public RingMasterBackendInstrumentation(IMetricsFactory metricsFactory)
        {
            if (metricsFactory == null)
            {
                throw new ArgumentNullException(nameof(metricsFactory));
            }

            this.badRequests        = metricsFactory.Create0D("badRequests");
            this.committed          = metricsFactory.Create0D("committed");
            this.newRequests        = metricsFactory.Create1D("newRequests", Dimensions.RequestType);
            this.requestsExecuting  = metricsFactory.Create1D("requestsExecuting", Dimensions.RequestType);
            this.requestsInQueue    = metricsFactory.Create1D("requestsInQueue", Dimensions.RequestType);
            this.responseTime       = metricsFactory.Create1D("responseTime", Dimensions.RequestType);
            this.sessions           = metricsFactory.Create1D("sessions", Dimensions.Client);
            this.activeSessions     = metricsFactory.Create0D("activeSessions");
            this.sslvalidations     = metricsFactory.Create1D("sslvalidationsPassed", Dimensions.Client);
            this.connectionsRefused = metricsFactory.Create1D("connectionsRefused", Dimensions.Client);
            this.sslErrors          = metricsFactory.Create1D("sslvalidationErrors", Dimensions.Client);
            this.dataSize           = metricsFactory.Create1D("dataSize", Dimensions.NodeType);
            this.totalCount         = metricsFactory.Create1D("totalCount", Dimensions.NodeType);
            this.alertableFailures  = metricsFactory.Create1D("alertableFailures", Dimensions.FailureType);

            this.startupTime = metricsFactory.Create1D("startupTime", Dimensions.Process);

            this.loadStateTimes = metricsFactory.Create0D("loadStateTimes");
            this.saveStateTimes = metricsFactory.Create0D("saveStateTimes");

            this.loadStateCount = metricsFactory.Create0D("loadStateCount");
            this.saveStateCount = metricsFactory.Create0D("saveStateCount");

            this.bulkWatchersCount = metricsFactory.Create1D("bulkWatchersCount", Dimensions.SessionId);

            this.bulkWatcherExecutionBacklogCount = metricsFactory.Create0D("bulkWatcherExecutionBacklogCount");
            this.authFailuresCount = metricsFactory.Create1D("authFailuresCount", Dimensions.SessionData);

            this.lostParent  = metricsFactory.Create0D("lostParent");
            this.orphanFound = metricsFactory.Create0D("orphanFound");
            this.lostChild   = metricsFactory.Create0D("lostChild");

            this.transactionManagerBatchApplied       = metricsFactory.Create0D("transactionManagerBatchApplied");
            this.transactionManagerTransactionApplied = metricsFactory.Create0D("transactionManagerTransactionApplied");
            this.incorrectExternalTransactionId       = metricsFactory.Create0D("incorrectExternalTransactionId");

            this.scheduledCommandFinished = metricsFactory.Create1D("scheduledCommandFinished", Dimensions.CompletionStatus);
            this.scheduledCommandQueued   = metricsFactory.Create0D("scheduledCommandQueued");
            this.scheduledCommandFinishedTimesMilliseconds = metricsFactory.Create0D("scheduledCommandFinishedTimesMilliseconds");

            this.lockDownAccess     = metricsFactory.Create2D("lockDownAccess", Dimensions.NodePath, Dimensions.AccessMode);
            this.lockDownEvents     = metricsFactory.Create1D("lockDownEvents", Dimensions.NodePath);
            this.fullLockDownEvents = metricsFactory.Create0D("fullLockDownEvents");

            this.uptime        = metricsFactory.Create1D("uptime", Dimensions.Version);
            this.isPrimary     = metricsFactory.Create1D("isPrimary", Dimensions.Version);
            this.timeAsPrimary = metricsFactory.Create0D("timeAsPrimary");

            this.appliedTxId   = metricsFactory.Create0D("appliedTxId");
            this.appliedTxTime = metricsFactory.Create0D("appliedTxTime");

            this.subtreeMeasurement  = metricsFactory.Create2D("subtreeMeasurement", Dimensions.NodePath, Dimensions.TransactionId);
            this.treeMeasurementTime = metricsFactory.Create1D("treeMeasurementTime", Dimensions.TransactionId);

            this.unexpectedException = metricsFactory.Create2D("unexpectedException", Dimensions.Component, Dimensions.ExceptionType);

            this.replicaHasCheckpointCoordinationEnabled = metricsFactory.Create0D("replicaHasCheckpointCoordinationEnabled");
            this.replicaHasCheckpointLease = metricsFactory.Create0D("replicaHasCheckpointLease");
            this.replicaIsTakingCheckpoint = metricsFactory.Create0D("replicaIsTakingCheckpoint");
            this.replicaFinishedCheckpoint = metricsFactory.Create0D("replicaFinishedCheckpoint");

            this.acquireLock = metricsFactory.Create3D("acquireLock", "ReadOnly", "Succeeded", "Level");

            this.responseWaitForReplication = metricsFactory.Create0D("responseWaitForReplication");
        }