Coder Social home page Coder Social logo

monitoringbundle's People

Contributors

ex13 avatar kazysgurskas avatar linasmo avatar lmikelionis avatar saimaz avatar tautrimas avatar trylika avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monitoringbundle's Issues

After reading docs its not exactly clear what this bundle does.

After reading documentation i found out following things.

Bundle provides a way to define and collect metrics, it comes with document count metric and other types of metrics must be defined by user.

It has command logging with some events thought its unclear how this works and whats the purpose of listed events.

Metric creation is unclear.

After trying to create metric i get Metric with name 'date_metric' was not found.

Here is my class.

namespace ONGR\DemoBundle\Metrics;

use ONGR\MonitoringBundle\Metric\MetricInterface;

/**
 * Class DateMetric.
 */
class DateMetric implements MetricInterface
{
    /**
     * {@inheritdoc}
     */
    public function getValue()
    {
        return new \DateTime();
    }

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'date_metric';
    }
}

This is my configs.

ongr_monitoring:
    es_manager: monitoring
    commands:
        commands:
            - ongr:monitoring:metrics:collect
    metric_collector:
        metrics:
            document_count:
                - { name: foo, document: es.manager.default.product }
            date_metric:
                - { name: date_metric, document: es.manager.default.product }

services:
    ongr_demo.metric.date:
        class: ONGR\DemoBundle\Metrics\DateMetric
        tags:
            - { name: ongr_monitoring.metric, metric: date_metric }

Custom metric example has errors.

In doc blocks repository is defined as string but is used as actual repository.

Also service definition example does not match actual class. Some constructor arguments are missing in service.

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.