It's recommended to use the mise for development.
dev1 is an example of a tag to test locally.
mise run build-lgtm dev1will build the Docker image locally.mise run lgtm dev1will run the Docker image locally.
This repository uses flint for linting. See the flint readme for detailed documentation on each linter.
mise run fix # Auto-fix all issues (recommended before committing)
mise run lint # Check only (same command used in CI)Always run mise run fix before committing — review the changed files as auto-fixes may produce unexpected results.
Acceptance test cases are defined in oats.yaml files in the examples directory.
The test cases are run by oats.
If a test case fails (let's say examples/nodejs), follow these steps:
- Build a new image:
mise run build-lgtm dev1 oats -timeout 2h -lgtm-version dev1 examples/nodejs(automatically installed bymise)- go to http://127.0.0.1:3000
You can run all everything together using mise run test.
Note
The architecture diagram is only accessible to Grafana employees.
The source code for the architecture diagram is a Google slide.
Take a screenshot of the slide and save it as img/overview.png.
./otelcol-contrib --config docker/otelcol-config.yaml --config docker/otelcol-export-http.yaml \
print-initial-config --feature-gates otelcol.printInitialConfig > merged.yaml