Giter Site home page Giter Site logo

Comments (5)

bryannaegele avatar bryannaegele commented on May 24, 2024

Hey @ebengt. It looks like you're missing some setup still.

Of the metrics you have defined, there's not enough definition to capture phoenix events, for instance. Example.

For the other metric, you're trying to record metrics for the VM but didn't start telemetry poller which is what emits those events, but maybe it's getting started someplace else?

You might want to consider using uplink to simplify and organize things.

from telemetry_metrics_prometheus.

ebengt avatar ebengt commented on May 24, 2024

Thank you.

I am migrating from prometheus.ex and there prometheus_ecto/prometheus_phoenix did not need a poller.
I will try to add uplink and see if I progress.

The presence of "vm.memory.total" is mostly due to copy/paste, if it had worked that would have been nice but it is not my main goal.

Is there no publicly available repo using TelemetryMetricsPrometheus (and Phoenix, if possible)?

from telemetry_metrics_prometheus.

ebengt avatar ebengt commented on May 24, 2024

Greetings,

Yes, Uplink works with the Uplink monitors.

When creating a new Phoenix app I get a sample file with Telemetry.Metrics.ConsoleReporter as reporter. It says that I can add more reporters, so I tried TelemetryMetricsPrometheus. The metrics for Telemetry.Metrics.ConsoleReporter are all summary/2, and that is not available in Prometheus. I changed to last_value/2 and that works. This way I can use TelemetryMetricsPrometheus without adding Uplink (because Phoenix added a module for me).

from telemetry_metrics_prometheus.

bryannaegele avatar bryannaegele commented on May 24, 2024

from telemetry_metrics_prometheus.

ebengt avatar ebengt commented on May 24, 2024

As an example I added TelemetryMetricsPrometheus to my repo https://github.com/ebengt/becomics
It is Phoenix based and I use last_value/2 instead of summary/2.

from telemetry_metrics_prometheus.

Related Issues (12)

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.