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

Generate fields for APM package #4432

Merged
merged 21 commits into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from 2 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
12 changes: 12 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/logs/fields/base-fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: '@timestamp'
type: date
description: Event timestamp.
7 changes: 7 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/logs/fields/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: error
description: |
Data captured by an agent representing an event occurring in a monitored service.
fields:
- name: id
description: |
The ID of the error.
35 changes: 35 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/logs/fields/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: error
description: |
Data captured by an agent representing an event occurring in a monitored service.
fields:
- name: culprit
description: Function call which was the primary perpetrator of this event.
- name: grouping_key
description: |
GroupingKey of the logged error for use in grouping.
- name: exception
description: |
Information about the originally thrown error.
fields:
- name: code
description: The error code set when the error happened, e.g. database error code.
- name: message
description: The original error message.
- name: module
description: The module namespace of the original error.
- name: type
- name: handled
description: Indicator whether the error was caught somewhere in the code or not.
- name: log
description: |
Additional information added by logging the error.
fields:
- name: level
description: The severity of the record.
- name: logger_name
description: The name of the logger instance used.
- name: message
description: The additionally logged error message.
- name: param_message
description: |
A parametrized message. E.g. 'Could not connect to %s'. The property message is still required, and should be equal to the param_message, but with placeholders replaced. In some situations the param_message is used to group errors together.
2 changes: 2 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/logs/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: APM logs and errors
type: logs
12 changes: 12 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/metrics/fields/base-fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: '@timestamp'
type: date
description: Event timestamp.
136 changes: 136 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/metrics/fields/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
- name: system
description: |
`system` contains local system metrics.
fields:
- name: cpu
description: |
`cpu` contains local CPU stats.
fields:
- name: total.norm.pct
format: percent
description: |
The percentage of CPU time spent by the process since the last event. This value is normalized by the number of CPU cores and it ranges from 0 to 100%.
- name: memory
description: |
`memory` contains local memory stats.
fields:
- name: total
format: bytes
description: |
Total memory.
- name: actual
description: |
Actual memory used and free.
fields:
- name: free
format: bytes
description: |
Actual free memory in bytes. It is calculated based on the OS. On Linux it consists of the free memory plus caches and buffers. On OSX it is a sum of free memory and the inactive memory. On Windows, it is equal to `system.memory.free`.
- name: process
description: |
`process` contains process metadata, CPU metrics, and memory metrics.
fields:
- name: cpu
description: |
`cpu` contains local CPU stats.
fields:
- name: total.norm.pct
format: percent
description: |
The percentage of CPU time spent by the process since the last event. This value is normalized by the number of CPU cores and it ranges from 0 to 100%.
- name: memory
description: Memory-specific statistics per process.
fields:
- name: size
format: bytes
description: |
The total virtual memory the process has.
- name: rss.bytes
format: bytes
description: |
The Resident Set Size. The amount of memory the process occupied in main memory (RAM).
- name: cgroup
description: Metrics and limits for the cgroup, collected by APM agents on Linux.
fields:
- name: memory
description: Memory-specific cgroup metrics and limits.
fields:
- name: mem.limit.bytes
format: bytes
description: Memory limit for the current cgroup slice.
- name: mem.usage.bytes
format: bytes
description: Memory usage by the current cgroup slice.
- name: transaction
fields:
- name: root
description: |
Identifies metrics for root transactions. This can be used for calculating metrics for traces.
- name: profile
fields:
- name: id
description: |
Unique ID for the profile.
All samples within a profile will have the same profile ID.
- name: duration
description: |
Duration of the profile, in microseconds.
All samples within a profile will have the same duration. To aggregate durations, you should first group by the profile ID.
- name: cpu
fields:
- name: ns
description: |
Amount of CPU time profiled, in nanoseconds.
- name: samples
fields:
- name: count
description: |
Number of profile samples for the profiling period.
- name: alloc_objects
fields:
- name: count
description: |
Number of objects allocated since the process started.
- name: alloc_space
fields:
- name: bytes
description: |
Amount of memory allocated, in bytes, since the process started.
- name: inuse_objects
fields:
- name: count
description: |
Number of objects allocated and currently in use.
- name: inuse_space
fields:
- name: bytes
description: |
Amount of memory allocated, in bytes, and currently in use.
- name: top
fields:
- name: id
description: |
Unique ID for the top stack frame in the context of its callers.
- name: function
description: |
Function name for the top stack frame.
- name: filename
description: |
Source code filename for the top stack frame.
- name: line
description: |
Source code line number for the top stack frame.
- name: stack
fields:
- name: id
description: |
Unique ID for a stack frame in the context of its callers.
- name: function
description: |
Function name for a stack frame.
- name: filename
description: |
Source code filename for a stack frame.
- name: line
description: |
Source code line number for a stack frame.
2 changes: 2 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/metrics/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: APM metrics
type: metrics
12 changes: 12 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/traces/fields/base-fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: '@timestamp'
type: date
description: Event timestamp.
Loading