Skip to content

Commit

Permalink
[APM] Improving overflow buckets documentation (elastic#162774)
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrdyn authored and Devon Thomson committed Aug 1, 2023
1 parent 71b4e2e commit 20d2fe7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions x-pack/plugins/apm/dev_docs/overflow_bucket_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ For more detailed instructions you can check [apm-server dev documentation](http

- Copy paste the below script in a file called `tx_max_group.go`
This file is responsible for generating 3 transactions per service.
```

<details>
<summary>tx_max_group.go</summary>

```go
package main

import (
Expand Down Expand Up @@ -185,9 +189,14 @@ For more detailed instructions you can check [apm-server dev documentation](http
span.End()
}
```

</details>

- Now create a Bash Script file, name it anything - e.g., `service_max_group.sh`
This file will generate services and then transactions for each service using the go script above.

<details>
<summary>tx_max_group.go</summary>

```sh
#!/usr/bin/env bash

Expand All @@ -203,6 +212,7 @@ For more detailed instructions you can check [apm-server dev documentation](http

echo "Ending script"
```
</details>

- Run `sh service_max_group` to generate the data

Expand Down

0 comments on commit 20d2fe7

Please sign in to comment.