-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine the Push and Pull metric controllers (#1378)
* Push->basic * Repackage * Rename away from push * Make exporter optional; export from a separate goroutine * Move pull_test into controller_test * Precommit pass * New OTLP/Prom example * Precommit * Fix the example * Shorten the example * Test starting controller w/o exporter * Test export timeout * Remove ancient example & lint * go.mod revert & tidy * Comments * Tidy a diff * Tidy a diff * Move export kind selector in the new example * Split this test into its original parts * Reduce diff size * Changelog * Remove extra Add/Done pair * Remove unused stopCh param; document the Stop behavior * Typo * Use ctx * Missed v0.15 * Apply PR feedback * Precommit pass * 0.14 -> 0.15 in new file * Remove diff chunk markers * Fix OTLP example * Upstream * dashpole comments * aneurysm9 feedback * Tidy go.sum
- Loading branch information
Showing
29 changed files
with
1,510 additions
and
674 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
This example demonstrates a metrics export pipeline that supports | ||
Prometheus (pull) and simultaneously exports OTLP to an OpenTelemetry | ||
endpoint (push). |
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,18 @@ | ||
module go.opentelemetry.io/otel/example/prom-collector | ||
|
||
go 1.14 | ||
|
||
replace ( | ||
go.opentelemetry.io/otel => ../.. | ||
go.opentelemetry.io/otel/exporters/metric/prometheus => ../../exporters/metric/prometheus | ||
go.opentelemetry.io/otel/exporters/otlp => ../../exporters/otlp | ||
go.opentelemetry.io/otel/sdk => ../../sdk | ||
) | ||
|
||
require ( | ||
go.opentelemetry.io/otel v0.15.0 | ||
go.opentelemetry.io/otel/exporters/metric/prometheus v0.15.0 | ||
go.opentelemetry.io/otel/exporters/otlp v0.15.0 | ||
go.opentelemetry.io/otel/sdk v0.15.0 | ||
google.golang.org/grpc v1.34.0 | ||
) |
Oops, something went wrong.