- Notifications
You must be signed in to change notification settings - Fork545
Spring boot package [Threads - data stream]#2981
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
11 commits Select commitHold shift + click to select a range
7277801 Spring boot package [Threads - data stream]
sunny-elasticb23e175 Merge branch 'elastic:main' into package_spring_boot_threads
yug-rajani4d4feac rename data stream and addressed review comments
sunny-elastic2883861 add description to fields
sunny-elasticc9078e4 Merge branch 'elastic:main' into package_spring_boot_threads
sunny-elastic49e3521 update CODEOWNER
sunny-elastic904ab51 update ecs fields
sunny-elastic9322e88 resolve merge conflicts
sunny-elasticff8abf6 update README.md
sunny-elastica8a3dc8 updated field.yml
sunny-elasticb317d51 update fields.yml and default.yml
sunny-elasticFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
6 changes: 6 additions & 0 deletionspackages/spring_boot/data_stream/threading/_dev/test/system/test-default-config.yml
This file contains hidden or 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,6 @@ | ||
| vars: | ||
| hosts: http://springboot:8090/actuator/jolokia | ||
| path: /jolokia/?ignoreErrors=true&canonicalNaming=false | ||
| input: jolokia/metrics | ||
| data_stream: | ||
| vars: ~ |
27 changes: 27 additions & 0 deletionspackages/spring_boot/data_stream/threading/agent/stream/stream.yml.hbs
This file contains hidden or 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,27 @@ | ||
| metricsets: ["jmx"] | ||
| namespace: "metrics" | ||
| hosts: {{hosts}} | ||
| http_method: "GET" | ||
| path: {{path}} | ||
| username: {{username}} | ||
| password: {{password}} | ||
| period: {{period}} | ||
| {{#if ssl}} | ||
| ssl: {{ssl}} | ||
| {{/if}} | ||
| jmx.mappings: | ||
| - mbean: 'java.lang:type=Threading' | ||
| attributes: | ||
| - attr: ThreadCount | ||
| field: threads.count | ||
| - attr: CurrentThreadAllocatedBytes | ||
| field: threads.current.allocated_bytes | ||
| - attr: CurrentThreadCpuTime | ||
| field: threads.current.time.cpu | ||
| - attr: CurrentThreadUserTime | ||
| field: threads.current.time.user | ||
| - attr: DaemonThreadCount | ||
| field: threads.daemon | ||
| - attr: TotalStartedThreadCount | ||
| field: threads.started | ||
35 changes: 35 additions & 0 deletionspackages/spring_boot/data_stream/threading/elasticsearch/ingest_pipeline/default.yml
This file contains hidden or 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,35 @@ | ||
| --- | ||
| description: Pipeline for parsing Spring Boot Threading metrics. | ||
| processors: | ||
| - set: | ||
| field: ecs.version | ||
| value: "8.1.0" | ||
| - rename: | ||
| field: jolokia.metrics | ||
| target_field: spring_boot.threading | ||
| ignore_missing: true | ||
| ignore_failure: true | ||
| - set: | ||
| field: event.type | ||
| value: info | ||
| - set: | ||
| field: event.kind | ||
| value: metric | ||
| - set: | ||
| field: event.category | ||
| value: web | ||
| - set: | ||
| field: event.module | ||
| value: spring_boot | ||
| - set: | ||
| field: event.dataset | ||
| value: spring_boot.threading | ||
| - remove: | ||
| field: jolokia | ||
| ignore_missing: true | ||
| ignore_failure: true | ||
| on_failure: | ||
| - set: | ||
| field: error.message | ||
| value: "{{ _ingest.on_failure_message }}" | ||
12 changes: 12 additions & 0 deletionspackages/spring_boot/data_stream/threading/fields/base-fields.yml
This file contains hidden or 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,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. |
This file contains hidden or 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,16 @@ | ||
| - external: ecs | ||
| name: ecs.version | ||
| - external: ecs | ||
| name: error.message | ||
| - external: ecs | ||
| name: event.category | ||
| - external: ecs | ||
| name: event.dataset | ||
| - external: ecs | ||
| name: event.kind | ||
| - external: ecs | ||
| name: event.module | ||
| - external: ecs | ||
| name: service.address | ||
| - external: ecs | ||
| name: service.type |
This file contains hidden or 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,33 @@ | ||
| - name: spring_boot | ||
| type: group | ||
| fields: | ||
| - name: threading | ||
| type: group | ||
| fields: | ||
| - name: threads | ||
| type: group | ||
| fields: | ||
| - name: count | ||
| type: long | ||
| description: Current number of live threads including both daemon and non-daemon threads. | ||
| - name: current | ||
| type: group | ||
| fields: | ||
| - name: allocated_bytes | ||
| type: double | ||
| description: Allocated bytes for the current thread. | ||
| - name: time | ||
| type: group | ||
| fields: | ||
| - name: cpu | ||
| type: long | ||
| description: CPU time for the current thread in nanoseconds. | ||
| - name: user | ||
| type: long | ||
| description: User time for the current thread. | ||
| - name: daemon | ||
| type: long | ||
| description: Current number of live daemon threads. | ||
| - name: started | ||
| type: long | ||
| description: Total number of threads created and also started since the Java virtual machine started. |
This file contains hidden or 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,21 @@ | ||
| title: Threading Metrics | ||
| type: metrics | ||
| streams: | ||
| - input: jolokia/metrics | ||
| template_path: stream.yml.hbs | ||
| title: Threading metrics | ||
| description: Collect Spring Boot Threading metrics. | ||
| vars: | ||
| - name: period | ||
| type: text | ||
| title: Period | ||
| default: 60s | ||
| - name: processors | ||
| type: yaml | ||
| title: Processors | ||
| multi: false | ||
| required: false | ||
| show_user: false | ||
| description: > | ||
| Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details. | ||
This file contains hidden or 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,78 @@ | ||
| { | ||
| "@timestamp": "2022-04-27T05:15:58.803Z", | ||
| "agent": { | ||
| "ephemeral_id": "f4f1cd9b-9005-4325-a961-3275ac6d72ea", | ||
| "id": "d0841fd3-9fa3-477f-bdee-1308cbf51371", | ||
| "name": "docker-fleet-agent", | ||
| "type": "metricbeat", | ||
| "version": "8.1.0" | ||
| }, | ||
| "data_stream": { | ||
| "dataset": "spring_boot.threading", | ||
| "namespace": "ep", | ||
| "type": "metrics" | ||
| }, | ||
| "ecs": { | ||
| "version": "8.1.0" | ||
| }, | ||
| "elastic_agent": { | ||
| "id": "d0841fd3-9fa3-477f-bdee-1308cbf51371", | ||
| "snapshot": false, | ||
| "version": "8.1.0" | ||
| }, | ||
| "event": { | ||
| "agent_id_status": "verified", | ||
| "category": "web", | ||
| "dataset": "spring_boot.threading", | ||
| "duration": 99822322, | ||
| "ingested": "2022-04-27T05:16:01Z", | ||
| "kind": "metric", | ||
| "module": "spring_boot", | ||
| "type": "info" | ||
| }, | ||
| "host": { | ||
| "architecture": "x86_64", | ||
| "containerized": true, | ||
| "hostname": "docker-fleet-agent", | ||
| "ip": [ | ||
| "172.29.0.7" | ||
| ], | ||
| "mac": [ | ||
| "02:42:ac:1d:00:07" | ||
| ], | ||
| "name": "docker-fleet-agent", | ||
| "os": { | ||
| "codename": "focal", | ||
| "family": "debian", | ||
| "kernel": "3.10.0-1160.59.1.el7.x86_64", | ||
| "name": "Ubuntu", | ||
| "platform": "ubuntu", | ||
| "type": "linux", | ||
| "version": "20.04.3 LTS (Focal Fossa)" | ||
| } | ||
| }, | ||
| "metricset": { | ||
| "name": "jmx", | ||
| "period": 60000 | ||
| }, | ||
| "service": { | ||
| "address": "http://springboot:8090/actuator/jolokia", | ||
| "type": "jolokia" | ||
| }, | ||
| "spring_boot": { | ||
| "threading": { | ||
| "threads": { | ||
| "count": 20, | ||
| "current": { | ||
| "allocated_bytes": 430512, | ||
| "time": { | ||
| "cpu": 185403326, | ||
| "user": 180000000 | ||
| } | ||
| }, | ||
| "daemon": 16, | ||
| "started": 23 | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.