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 2025-04-23 00:45:28 +00:00
.github/workflows install libsnappy in ci 2025-04-18 22:05:54 +02:00
app otel waterman 2025-04-04 01:25:58 +00: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
proto/opentelemetry/proto checkpoint, generating the haskell files for the proto correctly 2025-04-18 02:31:25 +02:00
rust-interop set extra-bundled libraries 2024-11-22 22:18:35 +01:00
src Merge branch 'master' of github.com:apitoolkit/apitoolkit-server 2025-04-23 00:45:28 +00:00
static new data indicator 2025-04-23 00:43:49 +00:00
test succinctify 2025-04-18 20:42:28 +02:00
.editorconfig use widgets for explorer and implement event listening for filter element add and update queries 2025-03-03 03:47:41 +01:00
.env.example fix: fixed clash with master 2024-09-12 15:49:19 +01:00
.ghci updates to use lsp 2024-11-18 22:49:24 +01:00
.ghcid add .ghcid 2024-11-18 22:49:25 +01:00
.gitignore loc 2025-04-17 12:08:06 +00:00
.hlint.yaml fix aeson imports 2024-11-21 04:24:52 +01:00
.prettierrc use widgets for explorer and implement event listening for filter element add and update queries 2025-03-03 03:47:41 +01: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 fix deep merging of objects 2025-04-22 22:35:20 +02:00
auto-instrument-config.toml functioning otel via http 2025-04-20 20:54:19 +02:00
cabal.project ghcid works with 9.10 atm 2025-04-22 00:27:23 +02:00
CHANGELOG.md application compiles with cabal at this point 2024-07-17 02:04:33 +02:00
compile_protos.sh remove open telemetry files and prepare to regenerate 2024-07-29 18:49:22 +02:00
docker-compose.yml increase postgres max resources 2025-03-22 17:01:08 +01:00
Dockerfile add libsnappy to dockerfile so it compiles and runs in prod 2025-04-18 22:44:53 +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
fourmolu.yaml fourmolu change 2025-04-22 23:49:25 +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
LICENSE application compiles with cabal at this point 2024-07-17 02:04:33 +02:00
Makefile migrate to tailwindcss v4 and daisyui v5 2025-03-14 00:05:46 +01:00
package-lock.json migrate to tailwindcss v4 and daisyui v5 2025-03-14 00:05:46 +01:00
package.json migrate to tailwindcss v4 and daisyui v5 2025-03-14 00:05:46 +01:00
package.yaml fix deep merging of objects 2025-04-22 22:35:20 +02:00
README.md deploy changes 2023-06-16 09:06:18 +02:00
Setup.hs checkpoint, generating the haskell files for the proto correctly 2025-04-18 02:31:25 +02:00
stack.yaml fix deep merging of objects 2025-04-22 22:35:20 +02:00
stack.yaml.lock fix deep merging of objects 2025-04-22 22:35:20 +02:00
tailwind.config.js migrate to tailwindcss v4 and daisyui v5 2025-03-14 00:05:46 +01:00
TODO.md update anomaly VM experience 2022-10-10 15:32:21 +02:00
weeder.toml fix endpoints inbox count indicator and fix broken pagination 2024-08-23 23:41:39 +02:00
workbox-config.js self host inter and jetbrains mono to prevent cdn issues 2025-04-21 01:15:56 +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