Skip to content

Commit 376f3ef

Browse files
committed
rename variable
1 parent caf7ad8 commit 376f3ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enterprise/coderd/prebuilds/metricscollector.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ func (mc *MetricsCollector) Collect(metricsCh chan<- prometheus.Metric) {
5454
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
5555
defer cancel()
5656
// nolint:gocritic // just until we get back to this
57-
prebuildCounters, err := mc.database.GetPrebuildMetrics(dbauthz.AsSystemRestricted(ctx))
57+
prebuildMetrics, err := mc.database.GetPrebuildMetrics(dbauthz.AsSystemRestricted(ctx))
5858
if err != nil {
5959
mc.logger.Error(ctx, "failed to get prebuild metrics", slog.Error(err))
6060
return
6161
}
6262

63-
for _, metric := range prebuildCounters {
63+
for _, metric := range prebuildMetrics {
6464
metricsCh <- prometheus.MustNewConstMetric(createdPrebuildsDesc, prometheus.CounterValue, float64(metric.CreatedCount), metric.TemplateName, metric.PresetName)
6565
metricsCh <- prometheus.MustNewConstMetric(failedPrebuildsDesc, prometheus.CounterValue, float64(metric.FailedCount), metric.TemplateName, metric.PresetName)
6666
metricsCh <- prometheus.MustNewConstMetric(claimedPrebuildsDesc, prometheus.CounterValue, float64(metric.ClaimedCount), metric.TemplateName, metric.PresetName)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy