Skip to content

Commit

Permalink
[Elastic Agent] Set metric type (#7033)
Browse files Browse the repository at this point in the history
* Set metric type.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
  • Loading branch information
constanca-m committed Aug 2, 2023
1 parent fbc3a5f commit fd8fbd8
Show file tree
Hide file tree
Showing 23 changed files with 170 additions and 17 deletions.
5 changes: 5 additions & 0 deletions packages/elastic_agent/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.10.1"
changes:
- description: Set metric type for all metric fields.
type: enhancement
link: https://github.com/elastic/integrations/pull/5618
- version: "1.10.0"
changes:
- description: Set dimension fields for metrics data streams APM Server, Auditbeat, Cloudbeat, Elastic Agent, Heartbeat, Filebeat, Metricbeat, Osquery and Packetbeat.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,41 +25,49 @@
fields:
- name: acked
type: long
metric_type: counter
description: >
Number of events acknowledged
- name: active
type: long
metric_type: gauge
description: >
Number of active events
- name: batches
type: long
metric_type: counter
description: >
Number of event batches
- name: dropped
type: long
metric_type: counter
description: >
Number of events dropped
- name: duplicates
type: long
metric_type: counter
description: >
Number of events duplicated
- name: failed
type: long
metric_type: counter
description: >
Number of events failed
- name: toomany
type: long
metric_type: counter
description: >
Number of too many events
- name: total
type: long
metric_type: counter
description: >
Total number of events
Expand All @@ -71,11 +79,13 @@
fields:
- name: bytes
type: long
metric_type: counter
description: >
Number of bytes written
- name: errors
type: long
metric_type: counter
description: >
Number of write errors
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,30 @@
- name: cfs.period.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for how regularly a cgroup's access to CPU resources should be reallocated.
- name: cfs.quota.us
type: long
unit: micros
metric_type: gauge
description: |
Total amount of time in microseconds for which all tasks in a cgroup can run during one period (as defined by cfs.period.us).
- name: cfs.shares
type: long
metric_type: gauge
description: |
An integer value that specifies a relative share of CPU time available to the tasks in a cgroup. The value specified in the cpu.shares file must be 2 or higher.
- name: rt.period.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for how regularly a cgroup's access to CPU resources is reallocated.
- name: rt.runtime.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for the longest continuous period in which the tasks in a cgroup have access to CPU resources.
- name: stats.periods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,41 +25,49 @@
fields:
- name: acked
type: long
metric_type: counter
description: >
Number of events acknowledged
- name: active
type: long
metric_type: gauge
description: >
Number of active events
- name: batches
type: long
metric_type: counter
description: >
Number of event batches
- name: dropped
type: long
metric_type: counter
description: >
Number of events dropped
- name: duplicates
type: long
metric_type: counter
description: >
Number of events duplicated
- name: failed
type: long
metric_type: counter
description: >
Number of events failed
- name: toomany
type: long
metric_type: counter
description: >
Number of too many events
- name: total
type: long
metric_type: counter
description: >
Total number of events
Expand All @@ -71,11 +79,13 @@
fields:
- name: bytes
type: long
metric_type: counter
description: >
Number of bytes written
- name: errors
type: long
metric_type: counter
description: >
Number of write errors
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,30 @@
- name: cfs.period.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for how regularly a cgroup's access to CPU resources should be reallocated.
- name: cfs.quota.us
type: long
unit: micros
metric_type: gauge
description: |
Total amount of time in microseconds for which all tasks in a cgroup can run during one period (as defined by cfs.period.us).
- name: cfs.shares
type: long
metric_type: gauge
description: |
An integer value that specifies a relative share of CPU time available to the tasks in a cgroup. The value specified in the cpu.shares file must be 2 or higher.
- name: rt.period.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for how regularly a cgroup's access to CPU resources is reallocated.
- name: rt.runtime.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for the longest continuous period in which the tasks in a cgroup have access to CPU resources.
- name: stats.periods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,41 +25,49 @@
fields:
- name: acked
type: long
metric_type: counter
description: >
Number of events acknowledged
- name: active
type: long
metric_type: gauge
description: >
Number of active events
- name: batches
type: long
metric_type: counter
description: >
Number of event batches
- name: dropped
type: long
metric_type: counter
description: >
Number of events dropped
- name: duplicates
type: long
metric_type: counter
description: >
Number of events duplicated
- name: failed
type: long
metric_type: counter
description: >
Number of events failed
- name: toomany
type: long
metric_type: counter
description: >
Number of too many events
- name: total
type: long
metric_type: counter
description: >
Total number of events
Expand All @@ -71,11 +79,13 @@
fields:
- name: bytes
type: long
metric_type: counter
description: >
Number of bytes written
- name: errors
type: long
metric_type: counter
description: >
Number of write errors
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,30 @@
- name: cfs.period.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for how regularly a cgroup's access to CPU resources should be reallocated.
- name: cfs.quota.us
type: long
unit: micros
metric_type: gauge
description: |
Total amount of time in microseconds for which all tasks in a cgroup can run during one period (as defined by cfs.period.us).
- name: cfs.shares
type: long
metric_type: gauge
description: |
An integer value that specifies a relative share of CPU time available to the tasks in a cgroup. The value specified in the cpu.shares file must be 2 or higher.
- name: rt.period.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for how regularly a cgroup's access to CPU resources is reallocated.
- name: rt.runtime.us
type: long
unit: micros
metric_type: gauge
description: |
Period of time in microseconds for the longest continuous period in which the tasks in a cgroup have access to CPU resources.
- name: stats.periods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,41 +25,49 @@
fields:
- name: acked
type: long
metric_type: counter
description: >
Number of events acknowledged
- name: active
type: long
metric_type: gauge
description: >
Number of active events
- name: batches
type: long
metric_type: counter
description: >
Number of event batches
- name: dropped
type: long
metric_type: counter
description: >
Number of events dropped
- name: duplicates
type: long
metric_type: counter
description: >
Number of events duplicated
- name: failed
type: long
metric_type: counter
description: >
Number of events failed
- name: toomany
type: long
metric_type: counter
description: >
Number of too many events
- name: total
type: long
metric_type: counter
description: >
Total number of events
Expand All @@ -71,11 +79,13 @@
fields:
- name: bytes
type: long
metric_type: counter
description: >
Number of bytes written
- name: errors
type: long
metric_type: counter
description: >
Number of write errors
Loading

0 comments on commit fd8fbd8

Please sign in to comment.