phantomas-reporter-elasticsearch
elasticsearch reporter for phantomas
Last updated 3 years ago by macbre .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install phantomas-reporter-elasticsearch 
SYNC missed versions from official npm registry.

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,
...
}

Current Tags

  • 1.1.0                                ...           latest (3 years ago)

2 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |