Skip to content

Commit

Permalink
add buckets to upload status histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhin-s committed Mar 21, 2024
1 parent 9af309b commit 6b8171e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions services/prometheus.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ if (PROMETHEUS_ENABLED) {

const histograms = {}

function registerHistogram (name, help) { // eslint-disable-line no-inner-declarations
histograms[name] = new Histogram(registerName, name, help)
function registerHistogram (name, help, buckets) { // eslint-disable-line no-inner-declarations
histograms[name] = new Histogram(registerName, name, help, buckets)
}

function pushHistogramMetric (histogramName, value) { // eslint-disable-line no-inner-declarations
Expand Down
2 changes: 1 addition & 1 deletion services/rfcx/ingest.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (PROMETHEUS_ENABLED) {
registerHistogram(name, `Processing metric for ${name} format.`)
})
Object.keys(db.status).forEach((s) => {
registerHistogram(s, `${s} upload status.`)
registerHistogram(s, `${s} upload status.`, [1, 2, 3, 4, 5, 10, 50, 100, 250, 500, 1000, 2000])
})
}

Expand Down

0 comments on commit 6b8171e

Please sign in to comment.