prismamedia / metrics Goto Github PK
View Code? Open in Web Editor NEWSymfony bundle to expose your own metrics to Prometheus
License: BSD 3-Clause "New" or "Revised" License
Symfony bundle to expose your own metrics to Prometheus
License: BSD 3-Clause "New" or "Revised" License
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?
The response should be returned with
content-type: application/openmetrics-text; version=1.0.0; charset=utf-8
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
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
OpenMetrics is a standardization of the Prometheus format to export metrics. It should be used as reference for this bundle, as soon as it works with Prometheus.
Doc: https://github.com/OpenObservability/OpenMetrics/blob/master/markdown/metric_exposition_format.md
Todo:
Adds travis badge in README
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.