Git Product home page Git Product logo

ecs_prometheus_exporter's Introduction

ecs_prometheus_exporter

This example shows how to use the Flecs Prometheus exporter (flecs-systems-prometheus). The Prometheus exporter makes Flecs statistics available as an endpoint that can be scraped by the Prometheus time series database (https://prometheus.io/).

Prerequisites

Flecs uses the bake build system (https://github.com/SanderMertens/bake). To install bake on Linux and MacOS, do:

git clone https://github.com/SanderMertens/bake
make -C bake/build-$(uname)
bake/bake setup

You will also need to download and run the Prometheus database if you want to store the data, and Grafana if you want to visualize the data. Without these components you can still manually inspect the endpoint.

Once Prometheus is downloaded, copy the prometheus.yml file into the directory where Prometheus was unzipped, and run the database by starting the Prometheus process.

When Grafana is started, create a new dashboard, go to configuration (the gear icon) and then "JSON model", and paste the JSON from the grafana.json file.

Running the demo

To install and run the demo, do:

bake run flecs-hub/ecs_prometheus_exporter

Go to http://localhost:3000 to view the Grafana dashboard. You should see something that looks like this:

Screen Shot 2019-11-15 at 1 45 58 AM

ecs_prometheus_exporter's People

Contributors

sandermertens 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.