GithubHelp home page GithubHelp logo

isabella232 / nodejs-connector-of-datastream Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akamai-contrib/nodejs-connector-of-datastream

0.0 0.0 0.0 33 KB

Nodes js program will connect to Akamai datastream using Aggregate logs endpoint and integrates data with Prometheus and Graphana for data visualization

JavaScript 26.86% HTML 73.14%

nodejs-connector-of-datastream's Introduction

nodejs-connector-of-datastream

Nodes js program will connect to Akamai datastream using Aggregate logs endpoint and integrates data with Prometheus and Graphana for data visualization

Setup

1. Initialize your environment

To initialize your environment you need to have Docker and NodeJs installed.

Once docker is installed, run: docker-compose create and then docker-compose start

Once docker environment is initialized, you will have the following components available:

  1. Prometheus: http://localhost:9090
  2. Pushgateway: http://localhost:9091
  3. Grafana: http://localhost:3000

After that install the required node dependencies by running npm install.

2. Configuration

There is a config file config.js in the root of the project. Make sure you update the config information to match your setup.

3. Run the scraping job

The scraping job is a node application that fetches new logs from Akamai DataStream every minute, and then pushes the data into Prometheus.

To start the scraping job, run npm start

4. View your data

Point your browser to http://localhost:3000 to open Grafana. If Grafana is freshly installed, the default credentials are set to username: admin and password: admin.

Once inside Grafana, create a new data source, select Prometheus and use http://localhost:9090 and browser as the configuration details.

Once the data source is configured, create a new dashboard by importing grafana-prometheus.json file.

After a few minutes once your scraping job is running, and you have traffic on your website, the graphs should show up.

nodejs-connector-of-datastream's People

Contributors

javiergarza avatar sbharadw009 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.