Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 4.79 KB

CONTRIBUTING.md

File metadata and controls

79 lines (50 loc) · 4.79 KB

How to Contribute

There are primarily 2 areas in which you can contribute in SigNoz

  • Frontend ( written in Typescript, React)
  • Backend - ( Query Service - written in Go)

Depending upon your area of expertise & interest, you can chose one or more to contribute. Below are detailed instructions to contribute in each area

Please note: If you want to work on an issue, please ask the maintainers to assign the issue to you before starting work on it. This would help us understand who is working on an issue and prevent duplicate work. 🙏🏻

If you just raise a PR, without the corresponding issue being assigned to you - it may not be accepted.

Develop Frontend

Need to update https://github.com/SigNoz/signoz/tree/main/frontend

Contribute to Frontend with Docker installation of SigNoz

  • git clone https://github.com/SigNoz/signoz.git && cd signoz
  • comment out frontend service section at deploy/docker/clickhouse-setup/docker-compose.yaml#L38
  • run cd deploy to move to deploy directory
  • Install signoz locally without the frontend
    • If you are using x86_64 processors (All Intel/AMD processors) run sudo docker-compose --env-file ./docker/clickhouse-setup/env/x86_64.env -f docker/clickhouse-setup/docker-compose.yaml up -d
    • If you are on arm64 processors (Apple M1 Macbooks) run sudo docker-compose --env-file ./docker/clickhouse-setup/env/arm64.env -f docker/clickhouse-setup/docker-compose.yaml up -d
  • cd ../frontend and change baseURL to http://localhost:8080 in file src/constants/env.ts
  • yarn install
  • yarn dev

Contribute to Frontend without installing SigNoz backend

If you don't want to install SigNoz backend just for doing frontend development, we can provide you with test environments which you can use as the backend. Please ping us in #contributing channel in our slack community and we will DM you with <test environment URL>

  • git clone https://github.com/SigNoz/signoz.git && cd signoz/frontend
  • Create a file .env with FRONTEND_API_ENDPOINT=<test environment URL>
  • yarn install
  • yarn dev

Frontend should now be accessible at http://localhost:3000/application

Contribute to Query-Service

Need to update https://github.com/SigNoz/signoz/tree/main/pkg/query-service

To run ClickHouse setup (recommended for local development)

  • git clone https://github.com/SigNoz/signoz.git && cd signoz/deploy
  • comment out frontend service section at docker/clickhouse-setup/docker-compose.yaml#L38
  • comment out query-service section at docker/clickhouse-setup/docker-compose.yaml#L22
  • Install signoz locally without the frontend and query-service
    • If you are using x86_64 processors (All Intel/AMD processors) run sudo docker-compose --env-file ./docker/clickhouse-setup/env/x86_64.env -f docker/clickhouse-setup/docker-compose.yaml up -d
    • If you are on arm64 processors (Apple M1 Macbooks) run sudo docker-compose --env-file ./docker/clickhouse-setup/env/arm64.env -f docker/clickhouse-setup/docker-compose.yaml up -d
  • STORAGE=clickhouse ClickHouseUrl=tcp://localhost:9001 go run main.go

Query Service should now be available at http://localhost:8080

If you want to see how, frontend plays with query service, you can run frontend also in you local env with the baseURL changed to http://localhost:8080 in file src/constants/env.ts as the query-service is now running at port 8080

General Instructions

You can always reach out to [email protected] to understand more about the repo and product. We are very responsive over email and slack.

  • If you find any bugs, please create an issue
  • If you find anything missing in documentation, you can create an issue with label documentation
  • If you want to build any new feature, please create an issue with label enhancement
  • If you want to discuss something about the product, start a new discussion

Conventions to follow when submitting commits, PRs

  1. We try to follow https://www.conventionalcommits.org/en/v1.0.0/

More specifically the commits and PRs should have type specifiers prefixed in the name. This should give you a better idea.

e.g. If you are submitting a fix for an issue in frontend - PR name should be prefixed with fix(FE):

  1. Follow GitHub Flow guidelines for your contribution flows

  2. Feel free to ping us on #contributing or #contributing-frontend on our slack community if you need any help on this :)