Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/census-ecosystem/opencensus-go-exporter-signalfx
OpenCensus Go exporters for SignalFX
https://github.com/census-ecosystem/opencensus-go-exporter-signalfx
Last synced: 3 months ago
JSON representation
OpenCensus Go exporters for SignalFX
- Host: GitHub
- URL: https://github.com/census-ecosystem/opencensus-go-exporter-signalfx
- Owner: census-ecosystem
- License: apache-2.0
- Archived: true
- Created: 2018-08-24T21:25:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T19:08:35.000Z (about 1 year ago)
- Last Synced: 2024-01-17T22:04:24.941Z (6 months ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 9
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
Lists
- awesome-opencensus - opencensus-go-exporter-signalfx
README
> **Warning**
>
> OpenCensus and OpenTracing have merged to form [OpenTelemetry](https://opentelemetry.io), 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](https://github.com/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**](https://opentelemetry.io/blog/2023/sunsetting-opencensus/).# OpenCensus SignalFx Stats Exporter for Go
[![Gitter chat][gitter-image]][gitter-url]The _OpenCensus SignalFx Stats Exporter for Go_ is a stats exporter that
exports data to [SignalFx](https://signalfx.com), 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](https://signalfx.com)
account and corresponding [data ingest
token](https://docs.signalfx.com/en/latest/admin-guide/tokens.html).OpenCensus Go libraries require Go 1.8 or later.
### Register the exporter
```go
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:
```go
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:
```go
func main() {
exporter, err := signalfx.NewExporter(signalfx.Options{Token: "token"})
view.RegisterExporter(exporter)
....
view.SetReportingPeriod(5 * time.Second)
}
```[gitter-image]: https://badges.gitter.im/census-instrumentation/lobby.svg
[gitter-url]: https://gitter.im/census-instrumentation/lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge