saleor-apps-redis_apl/apps/monitoring
Lukasz Ostrowski 1fd0960562
Release 2023-05-15
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-15 17:32:04 +02:00
..
backend Update manifests to contain up to date author, homepage, support and privacy fields (#399) 2023-04-18 14:04:14 +02:00
src Apply recent ESLint rules on the codebase (#404) 2023-04-18 15:10:00 +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 Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01: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 2023-05-15 2023-05-15 17:32:04 +02:00
docker-compose.yml Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
next-env.d.ts Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
next.config.js Extract useDashboardNotification (#362) 2023-04-14 17:40:49 +02:00
package.json Release 2023-05-15 2023-05-15 17:32:04 +02:00
README.md Prepare app for production (#145) 2023-02-23 07:22:37 +00:00
tsconfig.json Add Saleor Monitoring app (#189) 2023-02-22 12:23:04 +01:00
turbo.json Change turborepo config to use local turbo.json (#353) 2023-04-13 12:44:27 +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

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"
}