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

Grafana Demo #258

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
3368aae
added grafana
Apr 13, 2023
1bee6fd
Added dashboard
Apr 14, 2023
10c4a27
Merge branch 'main' into grafana
Jayclifford345 Apr 17, 2023
ee9ed42
Merge pull request #3 from InfluxCommunity/grafana
Jayclifford345 Apr 17, 2023
b0f5b82
Updated Readme
Apr 18, 2023
d35a50c
Added plugin setup script
Jayclifford345 Apr 19, 2023
6b98907
Update README.md
Jayclifford345 Apr 19, 2023
d6ae119
added new dashboard
Apr 24, 2023
7b0dd7d
updated datasource
Apr 24, 2023
4d2ddf7
added .env file template
Apr 25, 2023
cc2d3df
updated version and env
Apr 26, 2023
cbebe59
updated grafana
Apr 26, 2023
c6a29b7
modified: demo/docker-compose.yml
Apr 26, 2023
3d1de41
updated docker-compose
Apr 26, 2023
6f81094
updated grafana config
Apr 26, 2023
958b743
updated chart to seconds
Apr 28, 2023
16e2d5d
Merge pull request #4 from InfluxCommunity/killercoda
Jayclifford345 Apr 28, 2023
a5a5628
Merge pull request #5 from influxdata/main
Jayclifford345 Apr 28, 2023
1235b3b
updated docker-compose to build
Apr 28, 2023
bacbd26
Merge pull request #6 from influxdata/main
Jayclifford345 May 2, 2023
34e7230
Merge pull request #7 from influxdata/main
Jayclifford345 May 15, 2023
cd4686d
updated otel config
May 17, 2023
7c07583
updated config
May 17, 2023
2d6f22a
chore: drop span metrics from demo config
jacobmarble May 17, 2023
e635e19
chore: drop span metrics from demo config
jacobmarble May 17, 2023
ea41221
chore: revert "chore: drop span metrics from demo config"
jacobmarble May 18, 2023
534a36e
chore: update OpenTelemetry Collector to v0.78.2
jacobmarble May 23, 2023
ccae8d5
chore: update otel go sdk
povilasv May 25, 2023
1e3100f
chore: update OpenTelemetry Collector Contrib to v0.78.0
jacobmarble Jun 1, 2023
7a0a27b
feat(servicegraph): drop internal dependency graph logic
jacobmarble Jun 1, 2023
6a35f96
chore: add arm64 build to CI
jacobmarble Jun 1, 2023
b6f4f9c
chore(jaeger-influxdb): do not log context canceled
jacobmarble Jun 2, 2023
bc75887
chore: update OpenTelemetry and Jaeger
jacobmarble Jun 6, 2023
91826f2
feat(otel2influx): Adds support for DELTA temporality metrics
garry-cairns May 26, 2023
5ac9243
chore(otel2influx): implement configurable span dimensions
jacobmarble Jun 7, 2023
12c68bc
chore(tests): temporary dependency replacements for integration tests
jacobmarble Jun 7, 2023
b140413
feat(jaeger-influxdb): configurable FlightSQL gRPC metadata
jacobmarble Jun 2, 2023
c72e04d
chore(otelcol-influxdb): update OpenTelemetry to v0.79.0
jacobmarble Jun 8, 2023
e0fb267
Merge pull request #11 from influxdata/main
Jayclifford345 Jun 15, 2023
5838eae
chore: separate one-command demo from development demo
jacobmarble Jun 15, 2023
420665f
added .env
Jun 16, 2023
6ba937c
chore: separate one-command demo from development demo
jacobmarble Jun 15, 2023
4a5e1e1
foo
Jun 16, 2023
46d31ad
chore: separate one-command demo from development demo
jacobmarble Jun 15, 2023
5382e54
Merge pull request #12 from influxdata/main
Jayclifford345 Jun 16, 2023
a31c64f
Merge pull request #13 from influxdata/main
Jayclifford345 Jul 17, 2023
2d0089d
Merge pull request #14 from influxdata/main
Jayclifford345 Aug 7, 2023
b91966b
Merge pull request #15 from influxdata/main
Jayclifford345 Oct 12, 2023
1474f5f
Merge pull request #16 from influxdata/main
Jayclifford345 Jan 8, 2024
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
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
INFLUXDB_ADDR=eu-central-1-1.aws.cloud2.influxdata.com
INFLUXDB_TOKEN=xxxxxxxx
INFLUXDB_ORG=xxxxxxx
INFLUXDB_BUCKET=otel
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
local/

.env-old
plugins
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ In demo/docker-compose.yml, set values for these keys.
The key `INFLUXDB_BUCKET_ARCHIVE` is optional;
if set, it should point to an InfluxDB bucket with longer retention policy than `INFLUXDB_BUCKET`,
so that the "Archive Trace" button in Jaeger works properly:
```yaml
INFLUXDB_ADDR: <region specific hostname - no https prefix>
INFLUXDB_BUCKET: otel
INFLUXDB_BUCKET_ARCHIVE: otel-archive
INFLUXDB_TOKEN: <the API token you just created>

The community addition focuses on the useability of the demo with Grafana. With this being said to improve demo setup we have introduced a `.env` file that will allow you to set the following variables:

```bash
INFLUXDB_ADDR=eu-central-1-1.aws.cloud2.influxdata.com
INFLUXDB_TOKEN=xxxxxxx
INFLUXDB_ORG=xxxxxxxx
INFLUXDB_BUCKET=otel
INFLUXDB_BUCKET_ARCHIVE=otel-archive
```

In demo/otelcol-config.yml, set the similar values for these keys:
Expand All @@ -29,7 +33,7 @@ token: <the API token you just created>

Run the docker compose:
```console
$ docker compose --file demo/docker-compose.yml --project-directory . up --abort-on-container-exit --remove-orphans
$ docker-compose --file demo/docker-compose.yml --project-directory . up --abort-on-container-exit --remove-orphans
```

Traces are generated by "HotRod", an application designed to demonstrate tracing.
Expand All @@ -43,6 +47,13 @@ Click any trace.
View the dependency graph.
Click "System Architecture".

Grafana is available at http://localhost:3000. The default username and password are both `admin`. The default datasource of flightSQL is already confgiured.

**Note: You can find a dashboard to import under `demo/grafana/dashboards/Open Telemetry-1681814438598.json`**

If you would like to access the Trace node tree. Then Make sure to enable it within the Jaeger datasource. Head to data sources and click on the Jaeger datasource. Then enable `Enable Node Graph`. Then click save and test.


The images `otelcol-influxdb` and `jaeger-influxdb` are automatically built and pushed to Docker at https://hub.docker.com/r/jacobmarble/otelcol-influxdb and https://hub.docker.com/r/jacobmarble/jaeger-influxdb .

## Schema Reference
Expand Down
37 changes: 26 additions & 11 deletions demo/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: '3'
services:

jaeger-query:
image: jaegertracing/jaeger-query:1.49
stop_grace_period: 10s
Expand All @@ -22,32 +22,47 @@ services:
image: jacobmarble/jaeger-influxdb:0.5.9
stop_grace_period: 10s
environment:
LOG_LEVEL: info
LOG_LEVEL: debug
LISTEN_ADDR: :17271
INFLUXDB_TIMEOUT: 30s
# required: hostname or hostname:port
INFLUXDB_ADDR:
# required: bucket name
INFLUXDB_BUCKET: otel
# optional: bucket name for archived traces
INFLUXDB_BUCKET_ARCHIVE:
# required
INFLUXDB_TOKEN:

env_file:
- .env
hotrod:
image: jaegertracing/example-hotrod:1.41
stop_grace_period: 1s
ports:
- "8080:8080" # web UI
- "8083:8083"
depends_on:
- otelcol-influxdb
environment:
JAEGER_AGENT_HOST: otelcol-influxdb
JAEGER_AGENT_PORT: 6831
command: ["all", "-m", "prometheus"]

otelcol-influxdb:
image: otel/opentelemetry-collector-contrib:0.87.0
command: [ "--config", "/config.yml" ]
stop_grace_period: 10s
volumes:
- ./demo/otelcol-config.yml:/config.yml:ro
env_file:
- .env

grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
environment:
- INFLUX_HOST=${INFLUXDB_ADDR}
- INFLUX_TOKEN=${INFLUXDB_TOKEN}
- INFLUX_ORG=${INFLUXDB_ORG}
- INFLUX_BUCKET=${INFLUXDB_BUCKET}
- GF_INSTALL_PLUGINS=influxdata-flightsql-datasource
volumes:
- ./demo/grafana/datasources:/etc/grafana/provisioning/datasources
- ./demo/grafana/dashboards:/etc/grafana/provisioning/dashboards
- grafana:/var/lib/grafana/
restart: always
volumes:
grafana:
Loading
Loading