Coder Social home page Coder Social logo

honsa / doom-datasource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grafana/doom-datasource

0.0 0.0 0.0 8.9 MB

Hackathon project

License: Apache License 2.0

JavaScript 11.58% TypeScript 0.64% Shell 0.17% CMake 0.44% Makefile 0.37% M4 0.19% Python 0.16% C 86.44%

doom-datasource's Introduction

Grafana Doom

2022 March Grafana Labs hackathon project. Runs wasm compiled Doom as a Grafana datasource, renders in a timeseries chart.

You can read more about the project here: https://grafana.com/blog/2022/03/31/can-grafana-run-doom/

Try it

Doom WASM

  1. Install dependencies

    brew install emscripten automake sdl2 sdl2_mixer sdl2_net pkg-config

    The command above is using Homebrew. Use other package managers if needed.

  2. Copy doom1.wad to ./doom-wasm/src. Ensure it is called doom1.wad

  3. Run the following commands for building Doom:

    ./doom-wasm/scripts/clean.sh
    ./doom-wasm/scripts/build.sh
  4. Copy the following files to ./src/img:

    • ./doom-wasm/src/doom1.wad
    • ./doom-wasm/src/websockets-doom.wasm
    • ./doom-wasm/src/websockets-doom.wasm.map

Datasource

  1. Install dependencies

    yarn install
  2. Build plugin in production mode

    yarn build
  3. Add plugin to your grafana instance by sym-linking project root to Grafana's data/plugins folder

  4. Create a Doom datasource in Grafana and note down the ID. It will be needed later.

Dashboards

  1. Navigate to ./dashboards/ and pick one of the JSON files

  2. Replace datasource-id with the datasource ID that you obtained from last step in the Datasource instructions

  3. Import the dashboard in Grafana

  4. Enjoy!

doom-datasource's People

Contributors

domasx2 avatar kpelelis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.