SignalFx Developers Guide

publish()

Publishes an input stream to make it visible outside of a computation

Syntax

publish([label=label])

Table 1. Parameter definitions
Parameter Type Description

label

string

Optional: Text that appears as the plot label on all of the charts that display this stream (see Plotting Metrics and Events in the Chart Builder in the product documentation). Use publish(label=label) to tie visualization information to metric time series, or as a way of distinguishing which metric timeseries came from which streams.

Returns a reference to the input stream object.

Examples

1
2
3
4
5
6
7
#Publish all api.latency time series in a chart
data('api.latency').publish()


#Publish the mean of all cpu.utilization metric time series with the label
#"cpu average" in a chart
data('cpu.utilization').mean().publish(label='cpu average')

© Copyright 2019 SignalFx.

Third-party license information