forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sfxexporter: Add initial list of non-default metrics (#2145)
Always drop certain non-default metrics. A subsequent PR will be opened to add ability to override this behavior.
- Loading branch information
Showing
3 changed files
with
182 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
exporter/signalfxexporter/translation/default_metrics.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// Copyright 2021, OpenTelemetry Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http:https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package translation | ||
|
||
// DefaultExcludeMetricsYaml holds list of hard coded metrics that will added to the | ||
// exclude list from the config. It includes non-default metrics collected by | ||
// receivers. This list is determined by categorization of metrics in the SignalFx | ||
// Agent. Metrics in the OpenTelemetry convention, that have equivalents in the | ||
// SignalFx Agent that are categorized as non-default are also included in this list. | ||
const DefaultExcludeMetricsYaml = ` | ||
exclude_metrics: | ||
# Metrics in SignalFx Agent Format. | ||
- metric_names: | ||
# CPU metrics. | ||
# Derived from https://docs.signalfx.com/en/latest/integrations/agent/monitors/cpu.html. | ||
- cpu.interrupt | ||
- cpu.nice | ||
- cpu.softirq | ||
- cpu.steal | ||
- cpu.system | ||
- cpu.user | ||
- cpu.utilization_per_core | ||
- cpu.wait | ||
# Memory metrics. | ||
# Derived from https://docs.signalfx.com/en/latest/integrations/agent/monitors/memory.html. | ||
# Windows Only. | ||
- memory.available | ||
# Filesystems metrics. | ||
# Derived from https://docs.signalfx.com/en/latest/integrations/agent/monitors/filesystems.html. | ||
- df_complex.reserved | ||
- df_inodes.free | ||
- df_inodes.used | ||
- percent_inodes.free | ||
- percent_inodes.used | ||
- percent_bytes.free | ||
- percent_bytes.free | ||
- percent_bytes.free | ||
# Disk-IO metrics. | ||
# Derived from https://docs.signalfx.com/en/latest/integrations/agent/monitors/disk-io.html. | ||
- disk_merged.read | ||
- disk_merged.write | ||
- disk_octets.read | ||
- disk_octets.write | ||
- disk_ops.pending | ||
- disk_time.read | ||
- disk_time.write | ||
# Windows Only. | ||
- disk_octets.avg_read | ||
- disk_octets.avg_write | ||
- disk_time.avg_read | ||
- disk_time.avg_write | ||
# Network-io metrics. | ||
# Derived from https://docs.signalfx.com/en/latest/integrations/agent/monitors/net-io.html. | ||
- if_dropped.rx | ||
- if_dropped.tx | ||
- if_packets.rx | ||
- if_packets.tx | ||
# Metrics in OpenTelemetry Convention. | ||
# CPU Metrics. | ||
- metric_name: system.cpu.time | ||
dimensions: | ||
state: [interrupt, nice, softirq, steal, system, user, wait] | ||
# Memory metrics. | ||
- metric_name: system.memory.usage | ||
dimensions: | ||
state: [inactive] | ||
# Filesystem metrics. | ||
- metric_name: system.filesystem.usage | ||
dimensions: | ||
state: [reserved] | ||
- metric_name: system.filesystem.inodes.usage | ||
# Disk-IO metrics. | ||
- metric_names: | ||
- system.disk.merged | ||
- system.disk.io | ||
- system.disk.time | ||
- system.disk.pending_operations | ||
# Network-IO metrics. | ||
- metric_names: | ||
- system.network.packets | ||
- system.network.dropped_packets | ||
- system.network.tcp_connections | ||
` |