Skip to content

Commit

Permalink
chore: update metric views
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Oct 24, 2024
1 parent a583c15 commit d798285
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions packages/opentelemetry-node/lib/metrics/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,11 @@ function enableHostMetrics() {
// Ref (metrics in Kibana): https://github.com/elastic/kibana/pull/174700
/** @type {metrics.View[]} */
const HOST_METRICS_VIEWS = [
// drop `system.network.*` (not in Kibana)
// TODO: As for now we're going to drop all system metrics
// - most of them are not in the classic agent
// - `system.cpu` and `system.memory` are recommended to use the collector
new View({
instrumentName: 'system.network.*',
aggregation: Aggregation.Drop(),
}),
// drop `system.cpu.time` (not in Kibana)
new View({
instrumentName: 'system.cpu.time',
aggregation: Aggregation.Drop(),
}),
// drop `process.*` (not in Kibana)
new View({
instrumentName: 'process.*',
instrumentName: 'system.*',
aggregation: Aggregation.Drop(),
}),
];
Expand Down

0 comments on commit d798285

Please sign in to comment.