forked from Azure/iotedge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add prometheus mode to obsagent-client test module (Azure#5147)
The main change in this PR is the addition of a new Prometheus mode in the obsagent-client module. In this mode, the client hosts a prometheus endpoint from which 3 example metrics (a counter, guage, and histogram) can be pulled periodically. The endpoint is configurable via the PROMETHEUS_ENDPOINT env variable. Other changes: 1. Move OTel mode code into otel_client module 2. Move config code into a config module 3. Create new prometheus_server module 4. Add Cargo feature flags for the two modes (prom and otel) 5. Upgrade from opentelemetry-0.13 and optentelemetry-otlp-0.6 to opentelemetry-0.15 and opentelemetry-otlp-0.8
- Loading branch information
Showing
10 changed files
with
593 additions
and
206 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.