mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
b48bbe08b2
to track the replication transfer rate across different nodes, number of active workers in use and in-queue stats to get an idea of the current workload. This PR also adds replication metrics to the site replication status API. For site replication, prometheus metrics are no longer at the bucket level - but at the cluster level. Add prometheus metric to track credential errors since uptime
113 lines
5.1 KiB
Go
113 lines
5.1 KiB
Go
// Copyright (c) 2015-2021 MinIO, Inc.
|
|
//
|
|
// This file is part of MinIO Object Storage stack
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
package cmd
|
|
|
|
const (
|
|
peerRESTVersion = "v33" // Add SRMetrics
|
|
|
|
peerRESTVersionPrefix = SlashSeparator + peerRESTVersion
|
|
peerRESTPrefix = minioReservedBucketPath + "/peer"
|
|
peerRESTPath = peerRESTPrefix + peerRESTVersionPrefix
|
|
)
|
|
|
|
const (
|
|
peerRESTMethodHealth = "/health"
|
|
peerRESTMethodServerInfo = "/serverinfo"
|
|
peerRESTMethodLocalStorageInfo = "/localstorageinfo"
|
|
peerRESTMethodCPUInfo = "/cpuinfo"
|
|
peerRESTMethodDiskHwInfo = "/diskhwinfo"
|
|
peerRESTMethodOsInfo = "/osinfo"
|
|
peerRESTMethodMemInfo = "/meminfo"
|
|
peerRESTMethodProcInfo = "/procinfo"
|
|
peerRESTMethodSysErrors = "/syserrors"
|
|
peerRESTMethodSysServices = "/sysservices"
|
|
peerRESTMethodSysConfig = "/sysconfig"
|
|
peerRESTMethodDeleteBucketMetadata = "/deletebucketmetadata"
|
|
peerRESTMethodLoadBucketMetadata = "/loadbucketmetadata"
|
|
peerRESTMethodGetBucketStats = "/getbucketstats"
|
|
peerRESTMethodGetAllBucketStats = "/getallbucketstats"
|
|
peerRESTMethodDownloadBinary = "/downloadbinary"
|
|
peerRESTMethodCommitBinary = "/commitbinary"
|
|
peerRESTMethodSignalService = "/signalservice"
|
|
peerRESTMethodBackgroundHealStatus = "/backgroundhealstatus"
|
|
peerRESTMethodGetLocks = "/getlocks"
|
|
peerRESTMethodLoadUser = "/loaduser"
|
|
peerRESTMethodLoadServiceAccount = "/loadserviceaccount"
|
|
peerRESTMethodDeleteUser = "/deleteuser"
|
|
peerRESTMethodDeleteServiceAccount = "/deleteserviceaccount"
|
|
peerRESTMethodLoadPolicy = "/loadpolicy"
|
|
peerRESTMethodLoadPolicyMapping = "/loadpolicymapping"
|
|
peerRESTMethodDeletePolicy = "/deletepolicy"
|
|
peerRESTMethodLoadGroup = "/loadgroup"
|
|
peerRESTMethodStartProfiling = "/startprofiling"
|
|
peerRESTMethodDownloadProfilingData = "/downloadprofilingdata"
|
|
peerRESTMethodCycleBloom = "/cyclebloom"
|
|
peerRESTMethodTrace = "/trace"
|
|
peerRESTMethodListen = "/listen"
|
|
peerRESTMethodLog = "/log"
|
|
peerRESTMethodGetLocalDiskIDs = "/getlocaldiskids"
|
|
peerRESTMethodGetBandwidth = "/bandwidth"
|
|
peerRESTMethodGetMetacacheListing = "/getmetacache"
|
|
peerRESTMethodUpdateMetacacheListing = "/updatemetacache"
|
|
peerRESTMethodGetPeerMetrics = "/peermetrics"
|
|
peerRESTMethodGetPeerBucketMetrics = "/peerbucketmetrics"
|
|
peerRESTMethodLoadTransitionTierConfig = "/loadtransitiontierconfig"
|
|
peerRESTMethodSpeedTest = "/speedtest"
|
|
peerRESTMethodDriveSpeedTest = "/drivespeedtest"
|
|
peerRESTMethodReloadSiteReplicationConfig = "/reloadsitereplicationconfig"
|
|
peerRESTMethodReloadPoolMeta = "/reloadpoolmeta"
|
|
peerRESTMethodLoadRebalanceMeta = "/loadrebalancemeta"
|
|
peerRESTMethodStopRebalance = "/stoprebalance"
|
|
peerRESTMethodGetLastDayTierStats = "/getlastdaytierstats"
|
|
peerRESTMethodDevNull = "/devnull"
|
|
peerRESTMethodNetperf = "/netperf"
|
|
peerRESTMethodMetrics = "/metrics"
|
|
peerRESTMethodGetReplicationMRF = "/getreplicationmrf"
|
|
peerRESTMethodGetSRMetrics = "/getsrmetrics"
|
|
)
|
|
|
|
const (
|
|
peerRESTBucket = "bucket"
|
|
peerRESTBuckets = "buckets"
|
|
peerRESTUser = "user"
|
|
peerRESTGroup = "group"
|
|
peerRESTUserTemp = "user-temp"
|
|
peerRESTPolicy = "policy"
|
|
peerRESTUserOrGroup = "user-or-group"
|
|
peerRESTUserType = "user-type"
|
|
peerRESTIsGroup = "is-group"
|
|
peerRESTSignal = "signal"
|
|
peerRESTSubSys = "sub-sys"
|
|
peerRESTProfiler = "profiler"
|
|
peerRESTSize = "size"
|
|
peerRESTConcurrent = "concurrent"
|
|
peerRESTDuration = "duration"
|
|
peerRESTStorageClass = "storage-class"
|
|
peerRESTMetricsTypes = "types"
|
|
peerRESTDisk = "disk"
|
|
peerRESTHost = "host"
|
|
peerRESTJobID = "job-id"
|
|
peerRESTDepID = "depID"
|
|
peerRESTStartRebalance = "start-rebalance"
|
|
|
|
peerRESTListenBucket = "bucket"
|
|
peerRESTListenPrefix = "prefix"
|
|
peerRESTListenSuffix = "suffix"
|
|
peerRESTListenEvents = "events"
|
|
)
|