Giter Club home page Giter Club logo

phantomas-reporter-elasticsearch's Introduction

phantomas-reporter-elasticsearch

elasticsearch reporter for phantomas

Parameters

  • --elasticsearch-host=[ip] Elasticsearch instance ip (default : 127.0.0.1)
  • --elasticsearch-port=[port] Elasticsearch instance port (default : 9200)
  • --elasticsearch-index=[index_name] Name of the index to use
  • --elasticsearch-type=[type_name] Name of the document type to use

Or by using reporter options - <host>:<port>:<index>:<type>.

Usage

  • Install phantomas-reporter-elasticsearch to your phantomas project dependencies (npm install --save phantomas-reporter-elasticsearch)
  • Use it as specified in the phantomas reporter docs
$ phantomas http://app.net/start -R elasticsearch:es.app.net::app:phantomas_metrics

Note: as <port> option was skipped a default value will be used (9200).

Debugging

$ npm install phantomas-reporter-elasticsearch
$ DEBUG=phantomas:reporter:elasticsearch ./bin/phantomas.js http://example.com -R elasticsearch
  phantomas:reporter:elasticsearch Parameters: {"host":"localhost:9200","type":"report","index":"phantomas"} +0ms
  phantomas:reporter:elasticsearch Stored under id AVdx20wbKV-iX4VpGWoL +611ms
  
$ curl -s http://127.0.0.1:9200/phantomas/report/AVdx20wbKV-iX4VpGWoL | jsonlint
{
  "_index": "phantomas",
  "_type": "report",
  "_id": "AVdx20wbKV-iX4VpGWoL",
  "_version": 1,
  "found": true,
  "_source": {
    "url": "http://example.com/",
    "reportDate": "2016-09-28T17:32:59.758Z",
    "requests": 1,
    "gzipRequests": 1,
    "postRequests": 0,
    "httpsRequests": 0,
    "notFound": 0,
    "bodySize": 1270,
    "contentLength": 1270,
    "httpTrafficCompleted": 271,
    "timeToFirstByte": 268,
...
}

phantomas-reporter-elasticsearch's People

Contributors

adriwankenoby avatar macbre avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

phantomas-reporter-elasticsearch's Issues

Not working on ElasticSearch 5?

Hi,
Just wondering if I am doing something wrong, or if the reporter does not work with ElasticSearch 5.x?
I have the reporter working with ElasticSearch 2.4.x, but no luck on 5.x.
Is there a plan to support 5.x in future, if not currently?
Thanks,
Patrick

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.