-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implements POC * Fix * Encapsulates metric harvester so it only sends metrics when enabled * Adds payloadSize metric * Implements sending troubleshooting metrics based on optional sendMetrics configuration option * Fix type alias removed by mistake * Fix type alias removed by mistake * Fixes error that returned a nil metrics client instead of a noop one if no Metrics API URL mapping existed * Include hasError dimension in relevant metrics * Updates readme with new related documentation for the sendMetrics configuration option * Adds Dashboard template and README notes * Set timeseries to max resolution * Bump version * Include metrics module in Dockerfiles copy operations
- Loading branch information
Showing
472 changed files
with
115,783 additions
and
120,040 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
module github.com/newrelic/newrelic-fluent-bit-output | ||
|
||
go 1.14 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/fluent/fluent-bit-go v0.0.0-20200729034236-b9c0d6a20853 | ||
github.com/newrelic/newrelic-telemetry-sdk-go v0.8.1 | ||
github.com/onsi/ginkgo v1.8.0 | ||
github.com/onsi/gomega v1.5.0 | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/stretchr/testify v1.8.4 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/golang/protobuf v1.2.0 // indirect | ||
github.com/hpcloud/tail v1.0.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/stretchr/objx v0.5.0 // indirect | ||
github.com/ugorji/go/codec v1.1.7 // indirect | ||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd // indirect | ||
golang.org/x/sys v0.14.0 // indirect | ||
golang.org/x/text v0.3.0 // indirect | ||
gopkg.in/fsnotify.v1 v1.4.7 // indirect | ||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect | ||
gopkg.in/yaml.v2 v2.2.1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package metrics | ||
|
||
// Metrics sent from this plugin | ||
const ( | ||
PackagingTime = "logs.fb.packaging.time" | ||
PayloadSendTime = "logs.fb.payload.send.time" | ||
TotalSendTime = "logs.fb.total.send.time" | ||
PayloadCountPerChunk = "logs.fb.payload.count" | ||
PayloadSize = "logs.fb.payload.size" | ||
) | ||
|
||
// API URLs | ||
const ( | ||
metricsUsProdUrl = "https://metric-api.newrelic.com/metric/v1" | ||
metricsEuProdUrl = "https://metric-api.eu.newrelic.com/metric/v1" | ||
metricsStagingUrl = "https://staging-metric-api.newrelic.com/metric/v1" | ||
logsUsProdUrl = "https://log-api.newrelic.com/log/v1" | ||
logsEuProdUrl = "https://log-api.eu.newrelic.com/log/v1" | ||
logsStagingUrl = "https://staging-log-api.newrelic.com/log/v1" | ||
) | ||
|
||
// Maps the Metrics API URL that corresponds to the same environment as the provided | ||
// Logs API URL. It returns nil if an incorrect Logs API URL was provided. | ||
var logsToMetricsUrlMapping = map[string]string{ | ||
logsUsProdUrl: metricsUsProdUrl, | ||
logsEuProdUrl: metricsEuProdUrl, | ||
logsStagingUrl: metricsStagingUrl, | ||
} |
Oops, something went wrong.