Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Add support for Jaeger #78

Open
xunholy opened this issue Apr 30, 2020 · 3 comments
Open

Add support for Jaeger #78

xunholy opened this issue Apr 30, 2020 · 3 comments

Comments

@xunholy
Copy link
Member

xunholy commented Apr 30, 2020

Currently only supports AMD64

https://github.com/jaegertracing/jaeger

@xunholy xunholy added help wanted Extra attention is needed multi-arch and removed help wanted Extra attention is needed labels Apr 30, 2020
@Shuliyey
Copy link

Shuliyey commented May 1, 2020

root@d9cdd08a3b15:/app# make install-tools^C
root@d9cdd08a3b15:/app# GOOS=linux GOARCH=arm64 make  build-all-in-one-linux
go: directory cmd/opentelemetry-collector is outside main module
go: directory cmd/opentelemetry-collector/app/defaults is outside main module
go: directory cmd/opentelemetry-collector/app/exporter is outside main module
go: directory cmd/opentelemetry-collector/app/exporter/cassandra is outside main module
go: directory cmd/opentelemetry-collector/app/exporter/elasticsearch is outside main module
go: directory cmd/opentelemetry-collector/app/exporter/kafka is outside main module
go: directory cmd/opentelemetry-collector/app/receiver/jaegerreceiver is outside main module
cd jaeger-ui && yarn install --frozen-lockfile && cd packages/jaeger-ui && yarn build
yarn install v1.22.4
[1/4] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "lodash@^3.10.0"
warning Resolution field "[email protected]" is incompatible with requested version "lodash@^3.10.0"
warning Resolution field "[email protected]" is incompatible with requested version "parse5@^3.0.1"
[2/4] Fetching packages...
warning [email protected]: Invalid bin field for "url-loader".
info There appears to be trouble with your network connection. Retrying...
warning [email protected]: Invalid bin field for "file-loader".
warning [email protected]: Invalid bin field for "mini-css-extract-plugin".
warning [email protected]: Invalid bin field for "terser-webpack-plugin".
warning [email protected]: Invalid bin field for "url-loader".
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has incorrect peer dependency "[email protected]".
warning " > [email protected]" has incorrect peer dependency "[email protected]".
warning " > @jaegertracing/[email protected]" has unmet peer dependency "[email protected]".
warning "workspace-aggregator-e34a494e-c87e-46f6-b861-01bb171d135e > jaeger-ui > [email protected]" has incorrect peer dependency "react@^15".
warning "workspace-aggregator-e34a494e-c87e-46f6-b861-01bb171d135e > jaeger-ui > [email protected]" has incorrect peer dependency "[email protected] - 15.x".
warning "workspace-aggregator-e34a494e-c87e-46f6-b861-01bb171d135e > jaeger-ui > [email protected]" has incorrect peer dependency "[email protected] - 15.x".
warning "workspace-aggregator-e34a494e-c87e-46f6-b861-01bb171d135e > jaeger-ui > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning "workspace-aggregator-e34a494e-c87e-46f6-b861-01bb171d135e > jaeger-ui > [email protected]" has incorrect peer dependency "react-scripts@^2.1.3".
warning "workspace-aggregator-e34a494e-c87e-46f6-b861-01bb171d135e > jaeger-ui > [email protected]" has incorrect peer dependency "react@^15.6.2".
warning "workspace-aggregator-e34a494e-c87e-46f6-b861-01bb171d135e > @jaegertracing/plexus > [email protected]" has incorrect peer dependency "react-dom@^15.4.2".
[4/4] Building fresh packages...
$ lerna run --stream --sort prepublishOnly
lerna notice cli v3.13.0
lerna info versioning independent
lerna info Executing command in 1 package: "yarn run prepublishOnly"
@jaegertracing/plexus: yarn run v1.22.4
@jaegertracing/plexus: $ $npm_execpath build
@jaegertracing/plexus: $ NODE_ENV=production npm-run-all -ln --serial _tasks/clean/* _tasks/bundle-worker --parallel _tasks/build/**
@jaegertracing/plexus: [_tasks/clean/dirs   ]
@jaegertracing/plexus: [_tasks/clean/dirs   ] > @jaegertracing/[email protected] _tasks/clean/dirs /app/jaeger-ui/packages/plexus/package.json
@jaegertracing/plexus: [_tasks/clean/dirs   ] > rimraf lib dist
@jaegertracing/plexus: [_tasks/clean/dirs   ]
@jaegertracing/plexus: [_tasks/clean/dirs   ] $ rimraf lib dist
@jaegertracing/plexus: [_tasks/clean/worker ]
@jaegertracing/plexus: [_tasks/clean/worker ] > @jaegertracing/[email protected] _tasks/clean/worker /app/jaeger-ui/packages/plexus/package.json
@jaegertracing/plexus: [_tasks/clean/worker ] > rimraf src/LayoutManager/layout.worker*js*
@jaegertracing/plexus: [_tasks/clean/worker ]
@jaegertracing/plexus: [_tasks/clean/worker ] $ rimraf src/LayoutManager/layout.worker*js*
@jaegertracing/plexus: [_tasks/bundle-worker]
@jaegertracing/plexus: [_tasks/bundle-worker] > @jaegertracing/[email protected] _tasks/bundle-worker /app/jaeger-ui/packages/plexus/package.json
@jaegertracing/plexus: [_tasks/bundle-worker] > webpack --mode $NODE_ENV --config webpack.layout-worker.config.js
@jaegertracing/plexus: [_tasks/bundle-worker]
@jaegertracing/plexus: [_tasks/bundle-worker] $ webpack --mode $NODE_ENV --config webpack.layout-worker.config.js
@jaegertracing/plexus: [_tasks/bundle-worker] Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
@jaegertracing/plexus: [_tasks/bundle-worker] Hash: c5b2d2b7708fb99da0ed
@jaegertracing/plexus: [_tasks/bundle-worker] Version: webpack 4.29.6
@jaegertracing/plexus: [_tasks/bundle-worker] Time: 118050ms
@jaegertracing/plexus: [_tasks/bundle-worker] Built at: 05/01/2020 12:05:45 AM
@jaegertracing/plexus: [_tasks/bundle-worker]                    Asset      Size  Chunks                    Chunk Names
@jaegertracing/plexus: [_tasks/bundle-worker] layout.worker.bundled.js  2.01 MiB       0  [emitted]  [big]  layout.worker
@jaegertracing/plexus: [_tasks/bundle-worker]
@jaegertracing/plexus: [_tasks/bundle-worker] WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
@jaegertracing/plexus: [_tasks/bundle-worker] This can impact web performance.
@jaegertracing/plexus: [_tasks/bundle-worker] Assets:
@jaegertracing/plexus: [_tasks/bundle-worker]   layout.worker.bundled.js (2.01 MiB)
@jaegertracing/plexus: [_tasks/bundle-worker]
@jaegertracing/plexus: [_tasks/bundle-worker] WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
@jaegertracing/plexus: [_tasks/bundle-worker] Entrypoints:
@jaegertracing/plexus: [_tasks/bundle-worker]   layout.worker (2.01 MiB)
@jaegertracing/plexus: [_tasks/bundle-worker]       layout.worker.bundled.js
@jaegertracing/plexus: [_tasks/bundle-worker]
@jaegertracing/plexus: [_tasks/bundle-worker]
@jaegertracing/plexus: [_tasks/bundle-worker] WARNING in webpack performance recommendations:
@jaegertracing/plexus: [_tasks/bundle-worker] You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
@jaegertracing/plexus: [_tasks/bundle-worker] For more info visit https://webpack.js.org/guides/code-splitting/
@jaegertracing/plexus: [_tasks/build/lib/js   ]
@jaegertracing/plexus: [_tasks/build/lib/js   ] > @jaegertracing/[email protected] _tasks/build/lib/js /app/jaeger-ui/packages/plexus/package.json
@jaegertracing/plexus: [_tasks/build/lib/js   ] > node_modules/.bin/babel src --extensions '.tsx,.js' --out-dir lib
@jaegertracing/plexus: [_tasks/build/lib/js   ]
@jaegertracing/plexus: [_tasks/build/lib/types]
@jaegertracing/plexus: [_tasks/build/lib/types] > @jaegertracing/[email protected] _tasks/build/lib/types /app/jaeger-ui/packages/plexus/package.json
@jaegertracing/plexus: [_tasks/build/lib/types] > ../../node_modules/.bin/tsc
@jaegertracing/plexus: [_tasks/build/lib/types]
@jaegertracing/plexus: [_tasks/build/umd      ]
@jaegertracing/plexus: [_tasks/build/umd      ] > @jaegertracing/[email protected] _tasks/build/umd /app/jaeger-ui/packages/plexus/package.json
@jaegertracing/plexus: [_tasks/build/umd      ] > webpack --mode $NODE_ENV --config webpack.umd.config.js
@jaegertracing/plexus: [_tasks/build/umd      ]
@jaegertracing/plexus: [_tasks/build/lib/js   ] $ node_modules/.bin/babel src --extensions '.tsx,.js' --out-dir lib
@jaegertracing/plexus: [_tasks/build/umd      ] $ webpack --mode $NODE_ENV --config webpack.umd.config.js
@jaegertracing/plexus: [_tasks/build/lib/types] $ ../../node_modules/.bin/tsc
@jaegertracing/plexus: [_tasks/build/lib/js   ] Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
@jaegertracing/plexus: [_tasks/build/lib/js   ] [BABEL] Note: The code generator has deoptimised the styling of /app/jaeger-ui/packages/plexus/src/LayoutManager/layout.worker.bundled.js as it exceeds the max of 500KB.
@jaegertracing/plexus: [_tasks/build/lib/js   ] Successfully compiled 52 files with Babel.
@jaegertracing/plexus: [_tasks/build/umd      ] Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
@jaegertracing/plexus: [_tasks/build/umd      ] [BABEL] Note: The code generator has deoptimised the styling of /app/jaeger-ui/packages/plexus/src/LayoutManager/layout.worker.bundled.js as it exceeds the max of 500KB.
@jaegertracing/plexus: [_tasks/build/umd      ] Hash: 718a8b376f62e3ff79cc
@jaegertracing/plexus: [_tasks/build/umd      ] Version: webpack 4.29.6
@jaegertracing/plexus: [_tasks/build/umd      ] Time: 13906ms
@jaegertracing/plexus: [_tasks/build/umd      ] Built at: 05/01/2020 12:06:30 AM
@jaegertracing/plexus: [_tasks/build/umd      ]    Asset      Size  Chunks                    Chunk Names
@jaegertracing/plexus: [_tasks/build/umd      ] index.js  2.11 MiB       0  [emitted]  [big]  main
@jaegertracing/plexus: [_tasks/build/umd      ]
@jaegertracing/plexus: [_tasks/build/umd      ] WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
@jaegertracing/plexus: [_tasks/build/umd      ] This can impact web performance.
@jaegertracing/plexus: [_tasks/build/umd      ] Assets:
@jaegertracing/plexus: [_tasks/build/umd      ]   index.js (2.11 MiB)
@jaegertracing/plexus: [_tasks/build/umd      ]
@jaegertracing/plexus: [_tasks/build/umd      ] WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
@jaegertracing/plexus: [_tasks/build/umd      ] Entrypoints:
@jaegertracing/plexus: [_tasks/build/umd      ]   main (2.11 MiB)
@jaegertracing/plexus: [_tasks/build/umd      ]       index.js
@jaegertracing/plexus: [_tasks/build/umd      ]
@jaegertracing/plexus: [_tasks/build/umd      ]
@jaegertracing/plexus: [_tasks/build/umd      ] WARNING in webpack performance recommendations:
@jaegertracing/plexus: [_tasks/build/umd      ] You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
@jaegertracing/plexus: [_tasks/build/umd      ] For more info visit https://webpack.js.org/guides/code-splitting/
@jaegertracing/plexus: Done in 220.43s.
lerna success run Ran npm script 'prepublishOnly' in 1 package in 221.7s:
lerna success - @jaegertracing/plexus
Done in 1085.18s.
yarn run v1.22.4
$ REACT_APP_VSN_STATE=$(../../scripts/get-tracking-version.js) react-app-rewired build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade caniuse-lite browserslist`
Compiled successfully.
​
File sizes after gzip:
​
  639.25 KB  build/static/js/main.1df5a19f.chunk.js
  591.21 KB  build/static/js/1.6716773f.chunk.js
  38.4 KB    build/static/css/1.2f5addca.chunk.css
  8.22 KB    build/static/css/main.87a52764.chunk.css
  763 B      build/static/js/runtime~main.4a686d48.js
​
The bundle size is significantly larger than recommended.
Consider reducing it with code splitting: https://goo.gl/9VhYWB
You can also analyze the project dependencies: https://goo.gl/LeUzfb
​
The project was built assuming it is hosted at ./.
You can control this with the homepage field in your package.json.
​
The build folder is ready to be deployed.
​
Find out more about deployment here:
​
  https://bit.ly/CRA-deploy
​
Done in 608.56s.
esc -pkg assets -o cmd/query/app/ui/actual/gen_assets.go -prefix jaeger-ui/packages/jaeger-ui/build jaeger-ui/packages/jaeger-ui/build
esc -pkg assets -o cmd/query/app/ui/placeholder/gen_assets.go -prefix cmd/query/app/ui/placeholder/public cmd/query/app/ui/placeholder/public
GOOS=linux make build-all-in-one
make[1]: Entering directory '/app'
go: directory cmd/opentelemetry-collector is outside main module
go: directory cmd/opentelemetry-collector/app/defaults is outside main module
go: directory cmd/opentelemetry-collector/app/exporter is outside main module
go: directory cmd/opentelemetry-collector/app/exporter/cassandra is outside main module
go: directory cmd/opentelemetry-collector/app/exporter/elasticsearch is outside main module
go: directory cmd/opentelemetry-collector/app/exporter/kafka is outside main module
go: directory cmd/opentelemetry-collector/app/receiver/jaegerreceiver is outside main module
esc -pkg mappings -o plugin/storage/es/mappings/gen_assets.go -ignore assets -prefix plugin/storage/es/mappings plugin/storage/es/mappings
CGO_ENABLED=0 installsuffix=cgo go build -trimpath -tags ui -o ./cmd/all-in-one/all-in-one-linux -ldflags "-X github.com/jaegertracing/jaeger/pkg/version.commitSHA=f8349750e4603755bd79a8426cd43098b4bb376f -X github.com/jaegertracing/jaeger/pkg/version.latestVersion=v1.17.0 -X github.com/jaegertracing/jaeger/pkg/version.date=2020-05-01T00:18:40Z" ./cmd/all-in-one/main.go
make[1]: Leaving directory '/app'

did some quick testing got it build in arm64, would that be the right GOARCH for running the docker image in raspberry pi :)

@xunholy
Copy link
Member Author

xunholy commented May 1, 2020

Yep, absolutely!

We'd need to create a corresponding file under build/jaeger directory and create a github workflow to build the images.

Here is an example:

https://github.com/raspbernetes/multi-arch-images/blob/master/.github/workflows/cloudflared.yml

I'll also check to see if their helm chart requires any other images to run.

@xunholy
Copy link
Member Author

xunholy commented May 1, 2020

This is a list of all the charts dependency images and their current supported architecture:

Jaeger Chart

  • jaegertracing/jaeger-cassandra-schema (AMD64)
  • jaegertracing/jaeger-ingester (AMD64)
  • jaegertracing/jaeger-agent (AMD64)
  • jaegertracing/jaeger-collector (AMD64)
  • jaegertracing/jaeger-query (AMD64)
  • jaegertracing/spark-dependencies (AMD64)
  • jaegertracing/jaeger-es-index-cleaner (AMD64)
  • jaegertracing/example-hotrod (AMD64)

Jaeger Operator Chart

  • jaegertracing/jaeger-operator (AMD64)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants