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-10-06 19:36:23 +00:00
.github/workflows stack new ghc version 2023-09-29 15:11:43 +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 maintain current tab on poll hxswaps 2023-10-06 19:36:23 +00:00
static style: tabs 2023-10-06 11:18:58 +00: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 fix cyclic dependency error 2023-10-05 11:51:27 +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
index.html fourmolu 2023-01-09 16:52:23 +03:00
LICENSE persisting fields and format 2021-12-28 11:44:15 +01:00
Makefile formatting 2023-09-04 13:23:58 +02:00
package-lock.json refactor[WIP]: switch icons to font awesome's 2023-09-25 08:50:39 +01:00
package.json refactor[WIP]: switch icons to font awesome's 2023-09-25 08:50:39 +01:00
package.yaml undo sdk types 2023-09-06 15:08:11 +00: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 fmt entire codebase and update ghc version 2023-09-28 22:27:35 +02:00
stack.yaml.lock fmt entire codebase and update ghc version 2023-09-28 22:27:35 +02: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 A LOT OF UNDOCUMENTED CHANGES: acknowlege anomalies, favicons, service worker to cache assets, lots of cleanups, 2022-03-24 20:38:04 +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