Code Monkey home page Code Monkey logo

metrics's People

Contributors

gromnan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

metrics's Issues

UndefinedFunctionError: Attempted to call function "service" from namespace "Symfony\Component\DependencyInjection\Loader\Configurator"

Hello again,

I'm trying out your new version (v2.0.0) and I noticed that v2.0.0 doesn't handle Symfony 4.4.

I get this error every time:

Attempted to call function "service" from namespace "Symfony\Component\DependencyInjection\Loader\Configurator" in [...]/vendor/prismamedia/metrics/src/Bundle/Resources/config/services.php (line 20)
            ->args([tagged_iterator(PrismaMediaMetricsBundle::TAG_METRIC)]) ->set(MetricRenderer::class) ->set(MetricsController::class) ->args([service(MetricAggregator::class), service(MetricRenderer::class)]) ->tag('controller.service_arguments')

Can you help me to solve this problem?

Prometheus: float parsing error

Hello,

first of all thank you for providing your package! We use it to create our own metrics. Unfortunately we found that Prometheus could not pick up our metrics because it ran into a parsing error.

The problem could be traced back to the "\r" character:
Error message: strconv.ParseFloat: parsing "0\r": invalid syntax

I have already created a PR that deletes "\r", because actually only "\n" has to be used.
PR: #11

The problem was found on Linux with the following Prometheus version:

Build Information
Version 2.15.2
Revision d9613e5c466c6e9de548c4dae1b9aabf9aaf7c57

Add HELP & TYPE description to each metric

Example:

# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 4.09
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 2.76258816e+08
# HELP node_vmstat_thp_split_pmd /proc/vmstat information field thp_split_pmd.
# TYPE node_vmstat_thp_split_pmd untyped
node_vmstat_thp_split_pmd 1

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.