saleor-apps-redis_apl/apps/monitoring
Lukasz Ostrowski 99166f6aa9 Link docs
2023-07-03 11:25:17 +02:00
..
backend Add logo to apps (#552) 2023-06-14 16:05:36 +02:00
src Monitoring app UI (#677) 2023-06-27 19:20:58 +02:00
.env.example Link docs 2023-07-03 11:25:17 +02:00
.eslintrc Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
.gitignore Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
.graphqlrc.yml Unify urql version, use shared util to create client (#657) 2023-06-19 15:59:27 +02:00
.prettierignore Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
.prettierrc Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
CHANGELOG.md Release apps (#556) 2023-06-28 15:17:54 +02:00
docker-compose.yml Monitoring app UI (#677) 2023-06-27 19:20:58 +02:00
next-env.d.ts Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
next.config.js Monitoring app UI (#677) 2023-06-27 19:20:58 +02:00
package.json Update app-sdk (#672) 2023-06-29 14:35:57 +02:00
README.md Monitoring app UI (#677) 2023-06-27 19:20:58 +02:00
tsconfig.json Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
turbo.json Add docker envs 2023-06-28 16:13:05 +02:00
vitest.config.ts Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00

Saleor Monitoring app

NOTE: This is Alpha version of the app.

Local development

Start Monitoring backend

Run:

docker-compose up

It is beneficial to run this command in a separate terminal tab to observe backend logs easily.

By default, backend will run at localhost:5001 with:

  • Manifest at /manifest
  • Graphql Playground at /graphql
  • OpenApi viewer at /docs

Develop frontend:

Installing dependencies with:

pnpm i

Running dev server

pnpm dev

The frontend app will run at localhost:3000. By default, it acts as a proxy and redirects all unhandled requests to the backend (configured by MONITORING_APP_API_URL env). This way, all frontend and backend endpoints are accessible at http://localhost:3000

Test with Saleor

Expose http://localhost:3000 using a tunnel and use https://your.tunnel/manifest manifest URL to install Monitoring app

Graphql Playground

To use Graphql Playground, Monitoring app needs to be installed in Saleor, and HTTP headers must be set:

{
  "authorization-bearer": "token",
  "saleor-api-url": "https://my-env.saleor.cloud/graphql/"
}

Testing DataDog integration

Set MOCK_DATADOG_CLIENT env to True

Use these credentials sets to test DataDog integration:

Working credentials:

{
  "site": "US1",
  "apiKey": "156e22d50c4e8b6816e1fd4794d3fd8c"
}

Credentials that validate but generate an error while sending events

{
  "site": "EU1",
  "apiKey": "156e22d50c4e8b6816e1fd4794d3fd8c"
}