Skip to content

Commit f7fcbe0

Browse files
authored
Merge pull request #27 from svrnm/add-quickstart-to-readme
Add quickstart to readme for v0.9.0 branch
2 parents 3c11809 + abb9695 commit f7fcbe0

File tree

1 file changed

+67
-2
lines changed

1 file changed

+67
-2
lines changed

README.md

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,72 @@ This tools can be added to your code as a dependency or executed from the comman
2626

2727
***
2828

29-
## Support
29+
## Quickstart
30+
31+
For a quick start with a basic setup you can download the [latest fat-jar](https://github.com/cisco-open/test-telemetry-generator/releases/download/latest/test-telemetry-generator-otel-proto-0.9.0-fatjar.jar) and [example definitions](./example-definitions/) and put them all into one directory.
32+
33+
You can do all of that in the command line using [curl](https://curl.se/) like the following:
34+
35+
```shell
36+
mkdir my-test-telemetry
37+
cd my-test-telemetry
38+
curl -O https://github.com/cisco-open/test-telemetry-generator/releases/download/latest/test-telemetry-generator-otel-proto-0.9.0-fatjar.jar
39+
curl -O https://raw.githubusercontent.com/cisco-open/test-telemetry-generator/master/example-definitions/entity-definition.yaml
40+
curl -O https://raw.githubusercontent.com/cisco-open/test-telemetry-generator/master/example-definitions/trace-definition.yaml
41+
curl -O https://raw.githubusercontent.com/cisco-open/test-telemetry-generator/master/example-definitions/cli-target-rest.yaml
42+
```
43+
44+
Your `my-test-telemetry` directory should now contain the following files:
45+
46+
```shell
47+
$ ls
48+
cli-target-rest.yaml entity-definition.yaml test-telemetry-generator-otel-proto-0.9.0-fatjar.jar trace-definition.yaml
49+
```
50+
51+
Next, open the `cli-target-rest.yml` with an editor of your choice and set the `restURL` to your OTLP HTTP endpoint. For example, if you use an [OpenTelemetry
52+
Collector](https://opentelemetry.io/docs/collector/) running on `localhost` with an `otlp` receiver listening on port `4318`, update your target config to look like the following:
53+
54+
```yaml
55+
username: "ignored"
56+
password: "ignored"
57+
restURL: "http://localhost:4318/v1/traces
58+
```
59+
60+
Finally, start the test-telemetry-generator:
61+
62+
```shell
63+
java -jar test-telemetry-generator-otel-proto-0.9.0-fatjar.jar -e entity-definition.yaml -s trace-definition.yaml -t cli-target-rest.yaml
64+
```
65+
66+
If all goes well, you should see test-telemetry-generator printing out some logs for you:
67+
68+
```text
69+
...
70+
10:10:08.525 [main] INFO i.o.c.g.t.t.dto.Traces - 6jz87jHycn1T7hIE7c7zfKWnsIIBTAwI: Initializing 6 trace trees
71+
10:10:08.530 [main] INFO i.o.c.g.t.t.TracesGenerator - 6jz87jHycn1T7hIE7c7zfKWnsIIBTAwI: Initializing 6 trace generator threads
72+
...
73+
```
74+
75+
As a next step, you can add metrics and logs as well by downloading some more [example definitions](./example-definitions/):
76+
77+
```shell
78+
curl -O https://raw.githubusercontent.com/cisco-open/test-telemetry-generator/master/example-definitions/log-definition.yaml
79+
curl -O https://raw.githubusercontent.com/cisco-open/test-telemetry-generator/master/example-definitions/metric-definition.yaml
80+
```
81+
82+
Start the test-telemetry-generator:
83+
84+
```shell
85+
java -jar test-telemetry-generator-otel-proto-0.9.0-fatjar.jar -e entity-definition.yaml -s trace-definition.yaml -t cli-target-rest.yaml -l log-definition.yaml -m metric-definition.yaml
86+
```
87+
88+
Again, you will see test-telemetry-generator printing out some logs for you and you should also see traces, metrics and logs flowing into your OTLP endpoint.
89+
90+
You now have a working setup from which you can build your own telemetry test environment. Update the definition files to your needs and read the [wiki](https://github.com/cisco-open/test-telemetry-generator/wiki) to learn more.
91+
92+
***
93+
94+
## Support
3095
3196
We are continuously improving the tool and adding more feature support. Please see the [open issues](https://github.com/cisco-open/test-telemetry-generator/issues) to see the list of planned items and feel free to open a new issue in case something that you'd like to see is missing.
3297
@@ -35,8 +100,8 @@ We are continuously improving the tool and adding more feature support. Please s
35100
## Contributors
36101
37102
Built with :heart: by and with the support of:
103+
38104
* [Severin Neumann](https://github.com/svrnm)
39105
* [Ashish Tyagi](https://github.com/ashish-tyagi)
40106
* [Aarushi Singh](https://github.com/AarushiSingh09)
41107
* [Manpreet Singh](https://github.com/preet-dev)
42-

0 commit comments

Comments
 (0)