Monoscope lets you ingest and explore your logs, traces and metrics. We store these in S3 compatible buckets. Query in natural language via LLMs. https://monoscope.tech
  • Haskell 59.1%
  • HTML 13.4%
  • TypeScript 12.2%
  • JavaScript 11.6%
  • PLpgSQL 1.5%
  • Other 2.2%
Find a file
History 2023-11-08 00:27:34 +01:00
.github/workflows fix fourmolu 2023-10-18 21:18:37 +02:00
app 2 lines between declarations 2023-09-29 11:39:46 +02:00
cypress commit 2022-08-24 19:03:05 +02:00
docs/notes enable -Weverything ghc options and fixing code to remove some warnings 2022-02-24 01:23:08 +01:00
nginx persisting fields and format 2021-12-28 11:44:15 +01:00
src fix issue with error class 2023-11-08 00:27:34 +01:00
static Merge branch 'master' into remove_hstore 2023-11-07 22:02:07 +01:00
test 2 lines between declarations 2023-09-29 11:39:46 +02:00
.env.example pubsub topics in .env.example 2022-04-16 11:21:47 +02:00
.ghci switch closer to using jsonpath and also version update with statuscodes in the shapes 2023-05-27 17:18:31 +02:00
.gitignore add gitignore 2023-06-12 13:29:56 +02:00
.gitpod.dockerfile updated to exclude interractive environment 2022-03-30 09:20:32 +00:00
.gitpod.yml stack build 2022-03-30 18:34:13 +00:00
.hlint.yaml make fix-lint 2023-09-29 12:24:11 +02:00
apitoolkit-server.cabal Merge branch 'master' of https://github.com/apitoolkit/apitoolkit-server into autocomplete_fields 2023-10-25 07:17:46 +00:00
cypress.config.js uses overloaded record dot 2022-08-26 01:33:22 +02:00
docker-compose.yml persisting fields and format 2021-12-28 11:44:15 +01:00
Dockerfile fix certain issues with charts and the job runner 2023-02-25 16:23:55 +01:00
Dockerfile.timescaledb switch closer to using jsonpath and also version update with statuscodes in the shapes 2023-05-27 17:18:31 +02:00
dr-cabal-debug.json set encoding to utf8 to workaround error 2022-08-15 23:29:54 +02:00
fourmolu.yaml 2 lines between declarations 2023-09-29 11:39:46 +02:00
hie.yaml hspec discover 2022-01-29 22:36:51 +01:00
icons.txt update how we handle svg icons for better caching via service workers 2023-10-27 17:29:38 +01:00
index.html remove filter test code 2023-10-22 12:29:06 +00:00
LICENSE persisting fields and format 2021-12-28 11:44:15 +01:00
Makefile make file 2023-10-17 21:27:49 +02:00
package-lock.json Bump @babel/traverse from 7.20.1 to 7.23.2 2023-10-18 14:20:42 +00:00
package.json refactor[WIP]: switch icons to font awesome's 2023-09-25 08:50:39 +01:00
package.yaml enable hie 2023-10-24 18:04:05 +01:00
README.md deploy changes 2023-06-16 09:06:18 +02:00
Setup.hs 2 lines between declarations 2023-09-29 11:39:46 +02:00
stack.yaml enable hie 2023-10-24 18:04:05 +01:00
stack.yaml.lock enable hie 2023-10-24 18:04:05 +01:00
tailwind.config.js make the button collapsible 2023-03-06 22:53:17 +01:00
TODO.md update anomaly VM experience 2022-10-10 15:32:21 +02:00
workbox-config.js update how we handle svg icons for better caching via service workers 2023-10-27 17:29:38 +01:00

apitoolkit-server

  • Install and setup haskell via ghcup
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Mac

brew install llvm

Linux

sudo apt-get install llvm

Mac

brew install libpq

Linux

sudo apt-get install libpq-dev
  • Run the apitoolkit project via stack run, from the root of the project. Stack should have been installed via the ghcup step.
  • There is now a page for manual data ingestion available at /p/<project-id>/manual_ingest. This link isn't added to the menu since it's for dev testing only.
  • https://lightstep.com/ and datadog and https://www.instana.com/ For their observability. We should learn from them. Lightstep has nice landing page

Useful tools

  • install ormolu (brew install ormolu), for fmt
  • install hlint for linting (brew install hlint)
  • make fmt will use ormolu to format the code
  • make lint will run the linter and show you items to fix
  • it's recommended to compile haskell language server locally,else it crashes, especially on mac due to this issue: https://github.com/haskell/haskell-language-server/issues/2391

Useful reading

To build the service worker, run

workbox generateSW workbox-config.js

Run the timescale database via docker

  • Install docker via the docker website
  • setup a docker volume to hold the postgres data: docker volume create pgdata
  • run the docker image
    make timescaledb-docker
  • apitoolkit depends on pg_cron so you would need to update the postgres config in your pgdata volume to include the following;
shared_preload_libraries = 'pg_cron'
cron.database_name = 'apitoolkit'

alternatively you can run the following sql commands against the database

ALTER system SET cron.database_name = 'apitoolkit';
ALTER system SET shared_preload_libraries = 'pg_cron';
  • restart timescaledb-docker

Run a specific individual test

    stack test --test-arguments "--match=SeedingConfig" apitoolkit-server:tests
    OR 
    stack test --ta "--match=SeedingConfig" apitoolkit-server:tests