Skip to content

Commit

Permalink
[backend] Improve histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Jan 3, 2025
1 parent c34ce5d commit 694cdb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opencti-platform/opencti-graphql/src/config/tracing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ class MeterManager {
valueType: ValueType.INT,
description: 'Counts total number of errors'
});
// - Gauges
// - Histograms
this.latencyHistogram = meter.createHistogram('opencti_api_latency', {
valueType: ValueType.INT,
description: 'Latency computing per query',
advice: { explicitBucketBoundaries: [0, 10, 100, 500, 2000] }
advice: { explicitBucketBoundaries: [0, 100, 500, 2000, 5000] }
});
// - Gauges
this.directBulkGauge = meter.createGauge('opencti_api_direct_bulk', {
valueType: ValueType.INT,
description: 'Size of bulks for direct absorption'
Expand Down

0 comments on commit 694cdb7

Please sign in to comment.