Code Monkey home page Code Monkey logo

Comments (4)

masci avatar masci commented on September 26, 2024

Hi @ericBidcom and thanks for reporting.
Do you have a snippet of code we can use to reproduce the issue?

from php-datadogstatsd.

 avatar commented on September 26, 2024

Hi @masci . I'm using two simple metrics:

...
   $statsd->increment('request.ok');
   $statsd->timing('request.time', microtime(true) - $start_time);
...

As I said, it works fine with Datadog v5.22 but when I upgrade to v6, it seems that client doesnt send the request.time metric. The dashboard only show the request.ok metric.

Let me know if you need more information
thanks!

from php-datadogstatsd.

masci avatar masci commented on September 26, 2024

This works for me with Agent 6.0.0:

↳ php -a
Interactive shell

php > require './src/DogStatsd.php';
php > $statsd = new DataDog\DogStatsd();
php > $statsd->timing("query.foo.time", 200);
php > $statsd->increment('page.foo.views');

Going to close this since the problem seems to be on the Agent side, maybe some configuration related issue. Can you reach out to [email protected] for further investigation?

from php-datadogstatsd.

funkjedi avatar funkjedi commented on September 26, 2024

Same thing happened to me when I upgraded. I think there must be a bug somewhere in the code migrating the v5 config over to v6. Found the culprit inside datadog.yaml:

histogram_aggregates: []
histogram_percentiles: []

After changing to the defaults:

histogram_aggregates: ["max", "median", "avg", "count"]
histogram_percentiles: ["0.95"]

Everything started working again.

from php-datadogstatsd.

Related Issues (20)

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.