Comments (6)
I like how elasticsearch does "site plugins" -- you drop some static assets in plugins/<name>/_site
and ES serves it from /_plugin/<name>
. You then consume the REST API from your plugin to build whatever it is that you need.
So maybe something like:
./prometheus --plugins="dashboard=/path/to/dashboard/plugin,foo=/path/to/foo"
And prometheus then serves /plugins/dashboard
and /plugins/foo
from the paths provided.
from prometheus.
Additionally, I would like to know what the fitness of embedding multiple of these current Javascript graphs into one page would be. I imagine that this could bog down a user's browser immensely. Maybe this could become an impetus to support server-side rastering of images for large dashboards.
Either way, we would want to offer some simple Javascript entrypoint to access graphs for a given expression and then set some parameters around scale behavior (e.g., fixed or dynamic, or logarithmic base or decimal, or automatic scientific notation/humanization of values), axis labeling, size, etc.
Just imagine a Java server that has a dashboard page like this—for the sake for argument:
Java Virtual Machine Fitness
N.B. — We would almost always use generational managed memory settings for all systems aside from things in the batch/map reduce category.
Collection Information by Memory Generation
- New Generation: Collection Frequency and Per Collection Duration
- Old Generation: Collection Frequency and Per Collection Duration
- Perm. Generation: Collection Frequency and Per Collection Duration
- Anomalies: Promotion Failure and Concurrent Mode Failure Frequencies (Two Separate Y-Axes)
Utilization
- New Generation: Utilization v. Reservation/Committed
- Survivor Space: Utilization v. Reservation/Committed
- Survivor Space: Histogram by Collection Cycle
- Old Generation: Utilization v. Reservation/Committed
- Perm. Generation: Utilization v. Reservation/Committed
It's quite possible that you may look at this list and wonder what these mean, which is fine. But, one thing it does tell you: Axis sizing, labeling, and titling would help explain a lot of what this is.
from prometheus.
Let's talk this through in person -- it seems like more than a user-supplied static asset directory, we want 1) a dashboard builder (à la graphite) or 2) a JS graph API for building one's own dashboard.
I've already spent some time building 2, so maybe it would be of interest to build that out.
from prometheus.
Having a dashboard builder a la Graphite is fine, but I would still say that even Graphite's is sub-par. The key thing I am looking for with the static asset storage is being able to customize chrome and add useful descriptions, documentation, annotations, groupings, even playbook information for alerts, on the actual alerting system itself.
For instance, if you look at this Java stuff above, you would definitely want to provide users with some optionally-displayable documentation about "what does this mean?". If you have a graph that talks about garbage collection events per minute, someone may say, sure I get that I am seeing the rate of activities for something, but "what does the data actually tell me, and how should I interpret it?"
from prometheus.
As we discussed in person, we want two things for this:
- Simple static asset hosting within prometheus
- A client-side javascript library for building graphs from the prometheus API (#202)
from prometheus.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from prometheus.
Related Issues (20)
- Request to support ASLR in Prometheus HOT 2
- OTLP write receiver: Out of order sample from remote write (timestamp=0)
- enable querying of old data with new UTF-8 names HOT 4
- Add a function `fill()` to fill missing intervals HOT 2
- Prometheus skipping scrapes every 2 hours HOT 3
- promtool test with `/dev/stdin` fails for multiple test cases HOT 2
- Remove `init()` from discovery/metrics.go HOT 1
- Proposal: Add support `Nacos` SD config HOT 1
- promql: `label_join` destination label is not validated (v2.51.0+)
- Prom stops updating subset of metrics after dovecot server is restarted HOT 4
- Filter not working HOT 5
- Prometheus Target Down, when using it as Docker conatiner HOT 1
- Use metric_relabel_configs to drop metrics but still get a high prometheus memory usage HOT 2
- Queries return same series twice with non-stringlabels build HOT 2
- Generate wrong alerts when upgrading Prometheus from 2.33.5 to 2.50.0 HOT 2
- Prometheus's remote_write closes the impact of metadata sending
- Move required OpenTelemetry packages to prometheus/prometheus HOT 6
- How can I get a week's worth of alert history for Prometheus, Alertmanager via python script? HOT 1
- Configurabe scrape interval / scrape timeout via relabeling still marked as experimental HOT 1
- url parameter configuration via annotations not working for kubernetes service discovery based scrape job
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 prometheus.