import { routes } from "@lodestar/api"; import { MetricsRegisterExtra } from "@lodestar/utils"; export declare enum MessageSource { forward = "forward", publish = "publish" } export declare enum BeaconHealth { READY = 0, SYNCING = 1, ERROR = 2 } export type Metrics = ReturnType; export type LodestarGitData = { /** "0.16.0 developer/feature-1 ac99f2b5" */ version: string; /** "4f816b16dfde718e2d74f95f2c8292596138c248" */ commit: string; /** "hoodi" */ network: string; }; /** * A collection of metrics used by the validator client */ export declare function getMetrics(register: MetricsRegisterExtra, gitData: LodestarGitData): { defaultConfiguration: import("@lodestar/utils").GaugeExtra<{ builderSelection: routes.validator.BuilderSelection; broadcastValidation: routes.beacon.BroadcastValidation; }>; attesterStepCallProduceAttestation: import("@lodestar/utils").Histogram; attesterStepCallPublishAttestation: import("@lodestar/utils").Histogram; attesterStepCallProduceAggregate: import("@lodestar/utils").Histogram; attesterStepCallPublishAggregate: import("@lodestar/utils").Histogram; syncCommitteeStepCallProduceMessage: import("@lodestar/utils").Histogram; syncCommitteeStepCallPublishMessage: import("@lodestar/utils").Histogram; syncCommitteeStepCallProduceAggregate: import("@lodestar/utils").Histogram; syncCommitteeStepCallPublishAggregate: import("@lodestar/utils").Histogram; ptcStepCallProducePayloadAttestation: import("@lodestar/utils").Histogram; ptcStepCallPublishPayloadAttestation: import("@lodestar/utils").Histogram; proposerStepCallProduceBlock: import("@lodestar/utils").Histogram; proposerStepCallPublishBlock: import("@lodestar/utils").Histogram; publishedAttestations: import("@lodestar/utils").GaugeExtra; publishedAggregates: import("@lodestar/utils").GaugeExtra; numParticipantsInAggregate: import("@lodestar/utils").Histogram; attestaterError: import("@lodestar/utils").GaugeExtra<{ error: "produce" | "publish" | "sign"; }>; attesterDutiesCount: import("@lodestar/utils").GaugeExtra; attesterDutiesEpochCount: import("@lodestar/utils").GaugeExtra; attesterDutiesReorg: import("@lodestar/utils").GaugeExtra; attesterDutiesNextSlot: import("@lodestar/utils").GaugeExtra; blocksProduced: import("@lodestar/utils").GaugeExtra; blocksPublished: import("@lodestar/utils").GaugeExtra; blockProposingErrors: import("@lodestar/utils").GaugeExtra<{ error: "produce" | "publish"; }>; proposerDutiesEpochCount: import("@lodestar/utils").GaugeExtra; proposerDutiesReorg: import("@lodestar/utils").GaugeExtra; newProposalDutiesDetected: import("@lodestar/utils").GaugeExtra; indices: import("@lodestar/utils").GaugeExtra; discoveredIndices: import("@lodestar/utils").GaugeExtra; publishedSyncCommitteeMessage: import("@lodestar/utils").GaugeExtra; publishedSyncCommitteeContribution: import("@lodestar/utils").GaugeExtra; publishedPayloadAttestations: import("@lodestar/utils").GaugeExtra; ptcError: import("@lodestar/utils").GaugeExtra<{ error: "publish" | "sign"; }>; ptcDutiesCount: import("@lodestar/utils").GaugeExtra; ptcDutiesEpochCount: import("@lodestar/utils").GaugeExtra; ptcDutiesReorg: import("@lodestar/utils").GaugeExtra; ptcDutiesNextSlot: import("@lodestar/utils").GaugeExtra; syncCommitteeDutiesCount: import("@lodestar/utils").GaugeExtra; syncCommitteeDutiesEpochCount: import("@lodestar/utils").GaugeExtra; syncCommitteeDutiesReorg: import("@lodestar/utils").GaugeExtra; signers: import("@lodestar/utils").GaugeExtra; localSignTime: import("@lodestar/utils").Histogram; remoteSignTime: import("@lodestar/utils").Histogram; remoteSignErrors: import("@lodestar/utils").GaugeExtra; signError: import("@lodestar/utils").GaugeExtra; slashingProtectionBlockError: import("@lodestar/utils").GaugeExtra; slashingProtectionAttestationError: import("@lodestar/utils").GaugeExtra; beaconHealth: import("@lodestar/utils").GaugeExtra; restApiClient: { requestTime: import("@lodestar/utils").Histogram<{ routeId: string; }>; streamTime: import("@lodestar/utils").Histogram<{ routeId: string; }>; requestErrors: import("@lodestar/utils").GaugeExtra<{ routeId: string; baseUrl: string; }>; requestToFallbacks: import("@lodestar/utils").GaugeExtra<{ routeId: string; baseUrl: string; }>; urlsScore: import("@lodestar/utils").GaugeExtra<{ urlIndex: number; baseUrl: string; }>; }; keymanagerApiRest: { responseTime: import("@lodestar/utils").Histogram<{ operationId: string; }>; requests: import("@lodestar/utils").GaugeExtra<{ operationId: string; }>; errors: import("@lodestar/utils").GaugeExtra<{ operationId: string; }>; activeSockets: import("@lodestar/utils").GaugeExtra; socketsBytesRead: import("@lodestar/utils").GaugeExtra; socketsBytesWritten: import("@lodestar/utils").GaugeExtra; }; db: { dbReadReq: import("@lodestar/utils").GaugeExtra<{ bucket: string; }>; dbReadItems: import("@lodestar/utils").GaugeExtra<{ bucket: string; }>; dbWriteReq: import("@lodestar/utils").GaugeExtra<{ bucket: string; }>; dbWriteItems: import("@lodestar/utils").GaugeExtra<{ bucket: string; }>; dbSizeTotal: import("@lodestar/utils").GaugeExtra; dbApproximateSizeTime: import("@lodestar/utils").Histogram; }; doppelganger: { statusCount: import("@lodestar/utils").GaugeExtra<{ status: string; }>; epochsChecked: import("@lodestar/utils").GaugeExtra; }; }; export declare function renderEnumNumeric(obj: Record): string; //# sourceMappingURL=metrics.d.ts.map