Comments (5)
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.
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.
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.
from telemetry_metrics_prometheus.
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)
- Proposal: split server from project HOT 6
- Add HTTPS support
- Include a reference table of supported metrics HOT 2
- Unable to start multiple instances in a single VM HOT 10
- Incompatible with telemetry_metrics 0.5.0 HOT 2
- Document running multiple instances such as in an umbrella application
- Divergence from Prometheus Python Client HOT 3
- Ability to register multiple metrics with same name HOT 4
- Support for summary metric type HOT 3
- Change the handler_id to use event_name instead of metric_name HOT 1
- Reset after scrape HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telemetry_metrics_prometheus.