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 2024-07-07 16:42:31 +00:00
.github/workflows install open-ssl in github actions 2024-05-01 00:13:54 +02:00
app started switching between form and json/yaml representation 2024-04-30 23:49:05 +02:00
docs/notes enable -Weverything ghc options and fixing code to remove some warnings 2022-02-24 01:23:08 +01:00
golden introduce golden tests and improve test example 2024-07-02 02:43:31 +02:00
nginx persisting fields and format 2021-12-28 11:44:15 +01:00
rust-interop begin error as issue topic 2024-05-20 22:39:45 +02:00
src test: api keys 2024-07-07 16:42:31 +00:00
static drop retention policy of request_dumps down to 14 days as advertised 2024-07-07 01:02:34 +02:00
test test checkpoint 2024-07-01 18:52:09 +02:00
.env.example disable pubsub service 2024-03-01 00:06:41 +01:00
.ghci step one towards unified project membership checking 2024-05-11 11:52:40 +02:00
.gitignore introduce rust-interop 2024-04-12 01:53:11 +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
.prettierrc.yaml implemented step editor with lit-element 2024-05-03 03:44:57 +02:00
.rusty-hook.toml initialized FFI and now breaking down Routes into smaller modular routes to ease compile times 2024-04-30 23:49:04 +02:00
apitoolkit-server.cabal test: api keys 2024-07-07 16:42:31 +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 set lang to fix incorrect handling of non-ascii characters 2024-02-19 14:45:26 +02: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 introduce an effect for HTTP to allow using golden tests format for http requests during tests 2024-07-01 18:52:10 +02:00
hie.yaml hspec discover 2022-01-29 22:36:51 +01:00
index.html convert 2024-01-12 12:51:27 +00:00
jest.config.js rename parse swagger and add jest 2024-02-18 19:49:24 +00:00
LICENSE persisting fields and format 2021-12-28 11:44:15 +01:00
Makefile fix make file 2024-04-12 20:50:04 +00:00
package-lock.json change dropdowns in bodywrapper to daisyui style 2024-06-21 04:42:55 +02:00
package.json change dropdowns in bodywrapper to daisyui style 2024-06-21 04:42:55 +02:00
package.yaml introduce golden tests and improve test example 2024-07-02 02:43:31 +02:00
postcss.config.js add postcss 2024-02-06 18:20:19 +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 fix performance issue due to missing ToHtml implementations 2024-06-25 05:28:16 +02:00
stack.yaml.lock fix performance issue due to missing ToHtml implementations 2024-06-25 05:28:16 +02:00
tailwind.config.js Revert "fix log explore query empty state and filtercomponent" 2024-05-10 23:25:32 +01:00
testkit.js convert 2024-01-12 12:51:27 +00:00
TODO.md update anomaly VM experience 2022-10-10 15:32:21 +02:00
workbox-config.js fix anomalies list bug. Fix field hash calculation which included field types 2024-06-13 20:48:59 +02: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