Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Use string for unit type #33950

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions connector/servicegraphconnector/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ telemetry:
metrics:
connector_servicegraph_dropped_spans:
description: Number of spans dropped when trying to add edges
unit: 1
unit: "1"
enabled: true
sum:
value_type: int
monotonic: true
connector_servicegraph_total_edges:
description: Total number of unique edges
unit: 1
unit: "1"
enabled: true
sum:
value_type: int
monotonic: true
connector_servicegraph_expired_edges:
description: Number of edges that expired before finding its matching span
unit: 1
unit: "1"
enabled: true
sum:
value_type: int
Expand Down
2 changes: 1 addition & 1 deletion exporter/lokiexporter/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ telemetry:
lokiexporter_send_failed_due_to_missing_labels:
enabled: true
description: Number of log records failed to send because labels were missing
unit: 1
unit: "1"
sum:
monotonic: true
value_type: int
4 changes: 2 additions & 2 deletions exporter/prometheusremotewriteexporter/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ telemetry:
exporter_prometheusremotewrite_failed_translations:
enabled: true
description: Number of translation operations that failed to translate metrics from Otel to Prometheus
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
exporter_prometheusremotewrite_translated_time_series:
enabled: true
description: Number of Prometheus time series that were translated from OTel metrics
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
6 changes: 3 additions & 3 deletions processor/filterprocessor/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ telemetry:
processor_filter_datapoints.filtered:
enabled: true
description: Number of metric data points dropped by the filter processor
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_filter_logs.filtered:
enabled: true
description: Number of logs dropped by the filter processor
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_filter_spans.filtered:
enabled: true
description: Number of spans dropped by the filter processor
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
18 changes: 9 additions & 9 deletions processor/groupbyattrsprocessor/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,60 +17,60 @@ telemetry:
processor_groupbyattrs_num_grouped_spans:
enabled: true
description: Number of spans that had attributes grouped
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbyattrs_num_non_grouped_spans:
enabled: true
description: Number of spans that did not have attributes grouped
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbyattrs_span_groups:
enabled: true
description: Distribution of groups extracted for spans
unit: 1
unit: "1"
histogram:
value_type: int
processor_groupbyattrs_num_grouped_logs:
enabled: true
description: Number of logs that had attributes grouped
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbyattrs_num_non_grouped_logs:
enabled: true
description: Number of logs that did not have attributes grouped
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbyattrs_log_groups:
enabled: true
description: Distribution of groups extracted for logs
unit: 1
unit: "1"
histogram:
value_type: int
processor_groupbyattrs_num_grouped_metrics:
enabled: true
description: Number of metrics that had attributes grouped
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbyattrs_num_non_grouped_metrics:
enabled: true
description: Number of metrics that did not have attributes grouped
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbyattrs_metric_groups:
enabled: true
description: Distribution of groups extracted for metrics
unit: 1
unit: "1"
histogram:
value_type: int
12 changes: 6 additions & 6 deletions processor/groupbytraceprocessor/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,39 @@ telemetry:
processor_groupbytrace_conf_num_traces:
enabled: true
description: Maximum number of traces to hold in the internal storage
unit: 1
unit: "1"
gauge:
value_type: int
processor_groupbytrace_num_events_in_queue:
enabled: true
description: Number of events currently in the queue
unit: 1
unit: "1"
gauge:
value_type: int
processor_groupbytrace_num_traces_in_memory:
enabled: true
description: Number of traces currently in the in-memory storage
unit: 1
unit: "1"
gauge:
value_type: int
processor_groupbytrace_traces_evicted:
enabled: true
description: Traces evicted from the internal buffer
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbytrace_spans_released:
enabled: true
description: Spans released to the next consumer
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
processor_groupbytrace_traces_released:
enabled: true
description: Traces released to the next consumer
unit: 1
unit: "1"
sum:
value_type: int
monotonic: true
Expand Down
16 changes: 8 additions & 8 deletions receiver/bigipreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ metrics:
enabled: true
bigip.virtual_server.availability:
description: Availability of the virtual server.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [availability.status]
enabled: true
bigip.virtual_server.enabled:
description: Enabled state of of the virtual server.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [enabled.status]
Expand Down Expand Up @@ -164,14 +164,14 @@ metrics:
enabled: true
bigip.pool.availability:
description: Availability of the pool.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [availability.status]
enabled: true
bigip.pool.enabled:
description: Enabled state of of the pool.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [enabled.status]
Expand Down Expand Up @@ -220,14 +220,14 @@ metrics:
enabled: true
bigip.pool_member.availability:
description: Availability of the pool member.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [availability.status]
enabled: true
bigip.pool_member.enabled:
description: Enabled state of of the pool member.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [enabled.status]
Expand Down Expand Up @@ -276,14 +276,14 @@ metrics:
enabled: true
bigip.node.availability:
description: Availability of the node.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [availability.status]
enabled: true
bigip.node.enabled:
description: Enabled state of of the node.
unit: 1
unit: "1"
gauge:
value_type: int
attributes: [enabled.status]
Expand Down
2 changes: 1 addition & 1 deletion receiver/dockerstatsreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ metrics:
container.memory.percent:
enabled: true
description: "Percentage of memory used."
unit: 1
unit: "1"
gauge:
value_type: double
container.memory.cache:
Expand Down
28 changes: 14 additions & 14 deletions receiver/elasticsearchreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ metrics:
enabled: true
elasticsearch.breaker.tripped:
description: Total number of times the circuit breaker has been triggered and prevented an out of memory error.
unit: 1
unit: "1"
sum:
monotonic: true
aggregation_temporality: cumulative
Expand Down Expand Up @@ -484,14 +484,14 @@ metrics:
# See https://github.com/open-telemetry/opentelemetry-java-contrib/blob/main/jmx-metrics/docs/target-systems/jvm.md
jvm.classes.loaded:
description: The number of loaded classes
unit: 1
unit: "1"
gauge:
value_type: int
attributes: []
enabled: true
jvm.gc.collections.count:
description: The total number of garbage collections that have occurred
unit: 1
unit: "1"
sum:
monotonic: true
aggregation_temporality: cumulative
Expand Down Expand Up @@ -523,7 +523,7 @@ metrics:
enabled: true
jvm.memory.heap.utilization:
description: Fraction of heap memory usage
unit: 1
unit: "1"
gauge:
value_type: double
attributes: []
Expand Down Expand Up @@ -565,7 +565,7 @@ metrics:
enabled: true
jvm.threads.count:
description: The current number of threads
unit: 1
unit: "1"
gauge:
value_type: int
attributes: []
Expand Down Expand Up @@ -677,7 +677,7 @@ metrics:
enabled: true
elasticsearch.indexing_pressure.memory.total.primary_rejections:
description: Cumulative number of indexing requests rejected in the primary stage.
unit: 1
unit: "1"
sum:
monotonic: true
aggregation_temporality: cumulative
Expand All @@ -686,7 +686,7 @@ metrics:
enabled: true
elasticsearch.indexing_pressure.memory.total.replica_rejections:
description: Number of indexing requests rejected in the replica stage.
unit: 1
unit: "1"
sum:
monotonic: true
aggregation_temporality: cumulative
Expand All @@ -702,7 +702,7 @@ metrics:
enabled: true
elasticsearch.cluster.state_queue:
description: Number of cluster states in queue.
unit: 1
unit: "1"
sum:
monotonic: false
aggregation_temporality: cumulative
Expand All @@ -711,7 +711,7 @@ metrics:
enabled: true
elasticsearch.cluster.published_states.full:
description: Number of published cluster states.
unit: 1
unit: "1"
sum:
monotonic: false
aggregation_temporality: cumulative
Expand All @@ -720,7 +720,7 @@ metrics:
enabled: true
elasticsearch.cluster.published_states.differences:
description: Number of differences between published cluster states.
unit: 1
unit: "1"
sum:
monotonic: false
aggregation_temporality: cumulative
Expand All @@ -729,7 +729,7 @@ metrics:
enabled: true
elasticsearch.cluster.state_update.count:
description: The number of cluster state update attempts that changed the cluster state since the node started.
unit: 1
unit: "1"
sum:
monotonic: true
aggregation_temporality: cumulative
Expand Down Expand Up @@ -819,7 +819,7 @@ metrics:
enabled: true
elasticsearch.node.script.cache_evictions:
description: Total number of times the script cache has evicted old data.
unit: 1
unit: "1"
sum:
monotonic: true
aggregation_temporality: cumulative
Expand All @@ -828,7 +828,7 @@ metrics:
enabled: true
elasticsearch.node.script.compilation_limit_triggered:
description: Total number of times the script compilation circuit breaker has limited inline script compilations.
unit: 1
unit: "1"
sum:
monotonic: true
aggregation_temporality: cumulative
Expand Down Expand Up @@ -946,7 +946,7 @@ metrics:
enabled: false
elasticsearch.index.cache.size:
description: The number of elements of the query cache for an index.
unit: 1
unit: "1"
sum:
monotonic: false
aggregation_temporality: cumulative
Expand Down
Loading