Members
- 
    
<constant> DEFAULT_NODE_OS_METRICS_REPORTING_INTERVAL_IN_SECONDS :number
 - 
    
    
The default reporting interval for node os metrics is 30 seconds.
Type:
- number
 
 - 
    
<constant> DEFAULT_NODE_PROCESS_METRICS_REPORTING_INTERVAL_IN_SECONDS :number
 - 
    
    
The default reporting interval for node process metrics is 30 seconds.
Type:
- number
 
 - 
    
<constant> DEFAULT_REQUEST_METRICS_REPORTING_INTERVAL_IN_SECONDS :number
 - 
    
    
The default reporting interval for requests
Type:
- number
 
 - 
    
<constant> nodeOsMetrics
 - 
    
    
A map of Metric generating functions, that create Metrics to measure node os stats.
 - 
    
<constant> nodeProcessMetrics :Object.<string, function()>
 - 
    
    
A map of Metric generating functions, that create Metrics to measure node process stats.
Type:
- Object.<string, function()>
 
 
Type Definitions
- 
    
CounterProperties
 - 
    
    
Properties that can be supplied to the constructor of a Counter
Type:
- Object
 
- Source:
 
Properties:
Name Type Description countnumber An initial count for the counter. Defaults to 0.
Example
// Creates a counter that starts at 5. const counter = new Counter({ count: 5 }) - 
    
DimensionAwareMetricsRegistryOptions
 - 
    
    
Configurable options for the Dimension Aware Metrics Registry
- Source:
 
Properties:
Name Type Description metricLimitNumber the maximum number of metrics the registry may hold before dropping metrics
lruBoolean switch dropping strategy from "least recently added" to "least recently used"
 - 
    
Dimensions
 - 
    
    
A Dictionary of string, string key value pairs
Type:
- Object.<string, string>
 
Example
{ path: "/api/foo" method: "GET" statusCode: "200" } - 
    
HistogramData
 - 
    
    
The data returned from Histogram::toJSON()
Type:
- object
 
- Source:
 
Properties:
Name Type Description minnumber | null The lowest observed value.
maxnumber | null The highest observed value.
sumnumber | null The sum of all observed values.
variancenumber | null The variance of all observed values.
meannumber | null The average of all observed values.
stddevnumber | null The stddev of all observed values.
countnumber The number of observed values.
mediannumber 50% of all values in the resevoir are at or below this value.
p75number See median, 75% percentile.
p95number See median, 95% percentile.
p99number See median, 99% percentile.
p999number See median, 99.9% percentile.
 - 
    
HistogramProperties
 - 
    
    
Properties to create a Histogram with.
Type:
- Object
 
- Source:
 
Properties:
Name Type Description sampleobject The sample reservoir to use. Defaults to an ExponentiallyDecayingSample.
 - 
    
LoggingReporterOptions
 - 
    
    
        
Type:
- Object
 
- Source:
 
Properties:
Name Type Argument Description defaultDimensionsDimensions A dictionary of dimensions to include with every metric reported
loggerLogger <optional> 
The logger to use, if not supplied a new Buynan logger will be created
logLevelstring <optional> 
The log level to use with the created console logger if you didn't supply your own logger.
defaultReportingIntervalInSecondsnumber <optional> 
The default reporting interval to use if non is supplied when registering a metric, defaults to 10 seconds.
logLevelToLogAtstring <optional> 
You can specify the log level ['debug', 'info', 'warn', 'error'] that this reporter will use when logging the metrics via the logger.
 - 
    
MeterData
 - 
    
    
The data returned from Meter::toJSON()
Type:
- object
 
- Source:
 
Properties:
Name Type Description meannumber The average rate since the meter was started.
countnumber The total of all values added to the meter.
currentRatenumber The rate of the meter since the last toJSON() call.
1MinuteRatenumber The rate of the meter biased towards the last 1 minute.
5MinuteRatenumber The rate of the meter biased towards the last 5 minutes.
15MinuteRatenumber The rate of the meter biased towards the last 15 minutes.
 - 
    
MeterProperties
 - 
    
    
        
Type:
- Object
 
- Source:
 
Properties:
Name Type Description rateUnitnumber The rate unit. Defaults to 1000 (1 sec).
tickIntervalnumber The interval in which the averages are updated. Defaults to 5000 (5 sec).
keepAliveboolean Optional flag to unref the associated timer. Defaults to
false.Example
const meter = new Meter({ rateUnit: 1000, tickInterval: 5000}) - 
    
MetricValueTypeWrapper
 - 
    
    
Wrapper object to wrap metric value and SFX metadata needed to send metric value to SFX data ingestion.
Type:
- Object
 
- Source:
 
Properties:
Name Type Description metricstring The metric name to report to SignalFx
valuenumber the value to report to SignalFx
typestring The mapped SignalFx metric type
 - 
    
MetricWrapper
 - 
    
    
A wrapper object around a Metric, Dimensions and the metric name
Type:
- Object
 
- Source:
 
Properties:
Name Type Description namestring The supplied name of the Metric
metricImplMetric The Metric object
dimensionsDimensions The Dimensions for the given Metric
 - 
    
ReporterOptions
 - 
    
    
Options for creating a Reporter
Type:
- Object
 
- Source:
 
Properties:
Name Type Description defaultDimensionsDimensions A dictionary of dimensions to include with every metric reported
loggerLogger The logger to use, if not supplied a new Buynan logger will be created
logLevelstring The log level to use with the created console logger if you didn't supply your own logger.
defaultReportingIntervalInSecondsnumber The default reporting interval to use if non is supplied when registering a metric, defaults to 10 seconds.
unrefTimersboolean Indicate if reporting timers should be unref'd, defaults to false.
resetMetricsOnIntervalboolean Indicate if metrics should be reset on each reporting interval, defaults to false.
 - 
    
SelfReportingMetricsRegistryOptions
 - 
    
    
Configurable options for the Self Reporting Metrics Registry
- Source:
 
Properties:
Name Type Description loggerLogger the Logger to use
logLevelstring The Log level to use if defaulting to included logger
registryDimensionAwareMetricsRegistry The registry to use, defaults to new DimensionAwareMetricsRegistry
 - 
    
SettableGaugeProperties
 - 
    
    
Properties that can be supplied to the constructor of a Counter
Type:
- Object
 
- Source:
 
Properties:
Name Type Description initialValuenumber An initial value to use for this settable gauge. Defaults to 0.
Example
// Creates a Gauge that with an initial value of 500. const settableGauge = new SettableGauge({ initialValue: 500 }) - 
    
SignalFxEventCategoryId
 - 
    
    
        
Type:
- string
 
Example
const registry = new SignalFxSelfReportingMetricsRegistry(...); registry.sendEvent('uncaughtException', SignalFxEventCategories.ALERT); - 
    
StopwatchProperties
 - 
    
    
        
Type:
- Object
 
- Source:
 
Properties:
Name Type Description getTimefunction optional function override for supplying time., defaults to new Date() / process.hrt()
 - 
    
TimerProperties
 - 
    
    
        
Type:
- Object
 
- Source:
 
Properties:
Name Type Description meterMeter The internal meter to use. Defaults to a new Meter.
histogramHistogram The internal histogram to use. Defaults to a new Histogram.
getTimefunction optional function override for supplying time to the Stopwatch
keepAliveboolean Optional flag to unref the associated timer. Defaults to
false. 
Measured