Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

census-ecosystem/opencensus-go-exporter-signalfx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Warning

OpenCensus and OpenTracing have merged to form OpenTelemetry, which serves as the next major version of OpenCensus and OpenTracing.

OpenTelemetry has now reached feature parity with OpenCensus, with tracing and metrics SDKs available in .NET, Golang, Java, NodeJS, and Python. All OpenCensus Github repositories, except census-instrumentation/opencensus-python, will be archived on July 31st, 2023. We encourage users to migrate to OpenTelemetry by this date.

To help you gradually migrate your instrumentation to OpenTelemetry, bridges are available in Java, Go, Python, and JS. Read the full blog post to learn more.

OpenCensus SignalFx Stats Exporter for Go

Gitter chat

The OpenCensus SignalFx Stats Exporter for Go is a stats exporter that exports data to SignalFx, a real-time monitoring solution for cloud and distributed applications. SignalFx ingests that data and offers various visualizations on charts, dashboards and service maps, as well as real-time anomaly detection.

Quickstart

Import

import "opencensus-go-signalfx/exporter/signalfx"

The API of this project is still evolving. The use of vendoring or a dependency management tool is recommended.

Prerequisites

To use this exporter, one must have a SignalFx account and corresponding data ingest token.

OpenCensus Go libraries require Go 1.8 or later.

Register the exporter

func main() {
    // SignalFx token is part of the Options struct.
    // Stats will be reported every second by default.
    exporter, err := signalfx.NewExporter(signalfx.Options{Token: "token"})
    ...
}

It is possible to set a different endpoint for SignalFx, use:

func main() {
    exporter, err := signalfx.NewExporter(signalfx.Options{Token: "token", DatapointEndpoint: "Endpoint"})
    ....
}

It is possible to set different reporting intervals by using SetReportingPeriod(), for example:

func main() {
    exporter, err := signalfx.NewExporter(signalfx.Options{Token: "token"})
    view.RegisterExporter(exporter)
    ....
    view.SetReportingPeriod(5 * time.Second)
}

About

OpenCensus Go exporters for SignalFX

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages