(cm *compactorMetrics, base float64)
| 152 | } |
| 153 | |
| 154 | func generateTestData(cm *compactorMetrics, base float64) { |
| 155 | cm.baseFetcherSyncs.WithLabelValues().Add(1 * base) |
| 156 | cm.metaFetcherSyncs.WithLabelValues().Add(2 * base) |
| 157 | cm.metaFetcherSyncFailures.WithLabelValues().Add(3 * base) |
| 158 | cm.metaFetcherSyncDuration.WithLabelValues().Observe(4 * base / 10000) |
| 159 | cm.metaFetcherSynced.WithLabelValues("loaded").Add(5 * base) |
| 160 | cm.metaFetcherSynced.WithLabelValues("no-meta-json").Add(6 * base) |
| 161 | cm.metaFetcherSynced.WithLabelValues("failed").Add(7 * base) |
| 162 | cm.metaFetcherModified.WithLabelValues("replica-label-removed").Add(8 * base) |
| 163 | |
| 164 | cm.syncerGarbageCollectedBlocks.WithLabelValues().Add(9 * base) |
| 165 | cm.syncerGarbageCollections.WithLabelValues().Add(10 * base) |
| 166 | cm.syncerGarbageCollectionFailures.WithLabelValues().Add(11 * base) |
| 167 | cm.syncerGarbageCollectionDuration.WithLabelValues().Observe(12 * base / 10000) |
| 168 | cm.syncerBlocksMarkedForDeletion.WithLabelValues("aaa", "compaction").Add(13 * base) |
| 169 | cm.syncerBlocksMarkedForDeletion.WithLabelValues("bbb", "compaction").Add(14 * base) |
| 170 | cm.syncerBlocksMarkedForDeletion.WithLabelValues("ccc", "compaction").Add(15 * base) |
| 171 | |
| 172 | cm.compactions.WithLabelValues("aaa").Add(16 * base) |
| 173 | cm.compactions.WithLabelValues("bbb").Add(17 * base) |
| 174 | cm.compactions.WithLabelValues("ccc").Add(18 * base) |
| 175 | cm.compactionPlanned.WithLabelValues("aaa").Add(19 * base) |
| 176 | cm.compactionPlanned.WithLabelValues("bbb").Add(20 * base) |
| 177 | cm.compactionPlanned.WithLabelValues("ccc").Add(21 * base) |
| 178 | cm.compactionRunsStarted.WithLabelValues("aaa").Add(22 * base) |
| 179 | cm.compactionRunsStarted.WithLabelValues("bbb").Add(23 * base) |
| 180 | cm.compactionRunsStarted.WithLabelValues("ccc").Add(24 * base) |
| 181 | cm.compactionRunsCompleted.WithLabelValues("aaa").Add(25 * base) |
| 182 | cm.compactionRunsCompleted.WithLabelValues("bbb").Add(26 * base) |
| 183 | cm.compactionRunsCompleted.WithLabelValues("ccc").Add(27 * base) |
| 184 | cm.compactionFailures.WithLabelValues("aaa").Add(28 * base) |
| 185 | cm.compactionFailures.WithLabelValues("bbb").Add(29 * base) |
| 186 | cm.compactionFailures.WithLabelValues("ccc").Add(30 * base) |
| 187 | cm.verticalCompactions.WithLabelValues("aaa").Add(31 * base) |
| 188 | cm.verticalCompactions.WithLabelValues("bbb").Add(32 * base) |
| 189 | cm.verticalCompactions.WithLabelValues("ccc").Add(33 * base) |
| 190 | cm.remainingPlannedCompactions.WithLabelValues("aaa").Add(34 * base) |
| 191 | cm.remainingPlannedCompactions.WithLabelValues("bbb").Add(35 * base) |
| 192 | cm.remainingPlannedCompactions.WithLabelValues("ccc").Add(36 * base) |
| 193 | cm.compactionErrorsCount.WithLabelValues("aaa", retriableError).Add(37 * base) |
| 194 | cm.compactionErrorsCount.WithLabelValues("bbb", retriableError).Add(38 * base) |
| 195 | cm.compactionErrorsCount.WithLabelValues("ccc", retriableError).Add(39 * base) |
| 196 | cm.compactionErrorsCount.WithLabelValues("aaa", haltError).Add(40 * base) |
| 197 | cm.compactionErrorsCount.WithLabelValues("bbb", haltError).Add(41 * base) |
| 198 | cm.compactionErrorsCount.WithLabelValues("ccc", haltError).Add(42 * base) |
| 199 | cm.compactionErrorsCount.WithLabelValues("aaa", unauthorizedError).Add(43 * base) |
| 200 | cm.compactionErrorsCount.WithLabelValues("bbb", unauthorizedError).Add(44 * base) |
| 201 | cm.compactionErrorsCount.WithLabelValues("ccc", unauthorizedError).Add(45 * base) |
| 202 | cm.partitionCount.WithLabelValues("aaa").Add(46 * base) |
| 203 | cm.partitionCount.WithLabelValues("bbb").Add(47 * base) |
| 204 | cm.partitionCount.WithLabelValues("ccc").Add(48 * base) |
| 205 | cm.compactionsNotPlanned.WithLabelValues("aaa").Add(49 * base) |
| 206 | cm.compactionsNotPlanned.WithLabelValues("bbb").Add(50 * base) |
| 207 | cm.compactionsNotPlanned.WithLabelValues("ccc").Add(51 * base) |
| 208 | cm.compactionDuration.WithLabelValues("aaa").Add(52 * base) |
| 209 | cm.compactionDuration.WithLabelValues("bbb").Add(53 * base) |
| 210 | cm.compactionDuration.WithLabelValues("ccc").Add(54 * base) |
| 211 | } |
no test coverage detected