
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

When its comes to metrics, aggregations plays a huge role. If that fails, then there is no use of collecting metrics. Here is the how minum do it correctly.
var MONGODB_URL = "mongodb://localhost/test";
var minum = require('minum')(MONGODB_URL);
minum.track('no-of-users', 344, 'my-source', function(err) {
});
Aggregate both values and sources
@param {String} name - name of the metric
@param {Constant} resolution - resolution type
possible values: "day", "hour", "minute", "five_secs"
@param {String} valueAggregator - aggregation function to be used for aggregating metric of the each source
possible values: "sum", "avg", "min", "max"
@param {String} sourceAggregator - aggregation function to be used for the aggregating sources(value from metricsAggregation)
possible values: "sum", "avg", "min", "max"
@param {Object} query - mongodb query for filtering out metrics
only supports date and source only
@param {Function} callback - callback function
callback(err, results)
Metrics.aggregate = function(name, resolution, valueAggregator, sourceAggregator, query, callback){}
Only aggregate values, source will not be aggregated and return values aggregations
@param {String} name - name of the metric
@param {Constant} resolution - resolution type
possible values: "DAY", "HOUR", "MINUTE", "FIVE_SECS"
@param {String} valueAggregator - aggregation function to be used for aggregating metric of the each source
possible values: "sum", "avg", "min", "max"
@param {Array} sourceFilter - list of sources need to be return in the result. if empty all the sources will be retured
@param {Object} query - mongodb query for filtering out metrics
only supports date and source only
@param {Function} callback - callback function
callback(err, results)
Metrics.aggregate = function(name, resolution, valueAggregator, sourceAggregator, query, callback){}
identify sources available for a given metric
@param {String} name - name of the metric
@param {Object} query - mongodb query for filtering out metrics
only supports date only
@param {Function} callback - callback function
callback(err, resultsArray)
Metrics.indentifySources = function (name, query, callback) {}
var MONGODB_URL = "mongodb://localhost/test";
var minum = require('minum')(MONGODB_URL);
minum.aggregate('no-of-users', 'minute', 'avg', 'sum', {date: { $gte: 1361030882576 }}, function(err, result) {
});
FAQs
Core 'minum' module with backend tracking and aggregation
The npm package minum receives a total of 11 weekly downloads. As such, minum popularity was classified as not popular.
We found that minum demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.