risingstack / example-prometheus-nodejs Goto Github PK
View Code? Open in Web Editor NEWPrometheus monitoring example with Node.js
Prometheus monitoring example with Node.js
Hello,
I have followed this and have NodeJS services exposing metrics at http://application:9083/metrics. Then I tried to use https://github.com/RisingStack/example-prometheus-nodejs/blob/master/grafana-dashboard.json to have graphs on Grafana, but it always shows blank ( No Data Points ). I feel its because the JSON is not covering more than one containers. I am having two containers running exposing metrics. Can someone suggest me the needed changes in the dashboard JSON please.
Thank you
Hello!
README contains the following:
Average Memory Usage
In Megabyte.avg(nodejs_external_memory_bytes / 1024) by (service)
but nodejs_external_memory_bytes is size in bytes, therefore, we need use avg(nodejs_external_memory_bytes / 1024 / 1024)
in order to show size in megabytes?
thanks for this example!
Why the memory calculation is only divided by 1024?
avg(nodejs_external_memory_bytes / 1024 ) by (service)
isn't it suppose to be:
avg(nodejs_external_memory_bytes / 1024 / 1024 ) by (service)
Existing docs appear to be missing a hyphen, causing a syntax error for users.
docker run -p 9090:9090 -v "$(pwd)/prometheus-data":/prometheus-data prom/prometheus -config.file=/prometheus-data/prometheus.yml
Should be:
docker run -p 9090:9090 -v "$(pwd)/prometheus-data":/prometheus-data prom/prometheus --config.file=/prometheus-data/prometheus.yml
โ prometheus-data git:(master) โ promtool test rules alert.rules
Unit Testing: alert.rules
FAILED:
yaml: line 7: mapping values are not allowed in this context
How to fix this issue.
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.