-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate updates to Prometheus receiver from opencensus-service #208
Migrate updates to Prometheus receiver from opencensus-service #208
Conversation
Codecov Report
@@ Coverage Diff @@
## master #208 +/- ##
==========================================
+ Coverage 72.74% 73.65% +0.91%
==========================================
Files 107 112 +5
Lines 6108 6560 +452
==========================================
+ Hits 4443 4832 +389
- Misses 1438 1484 +46
- Partials 227 244 +17
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
To other reviewers: FYI this is mostly a cherry-pick of census-instrumentation/opencensus-service#597 and census-instrumentation/opencensus-service#613 (already reviewed).
Remove stale content, put in place a simple skeleton, and put information for the Zipkin exporter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updating the documentation!
|
||
ScrapeLoop strips out any tag with empty value, however, in OpenCensus, the tag keys is stored separately, we need to able to get all the possible tag keys | ||
of the same metric family before committing the metric family to the sink. | ||
|
||
5. StartTimestamp and values of metrics of cumulative types | ||
|
||
In OpenCensus, every metrics of cumulative type is required to have a StartTimestamp, which records when a metric is first recorded, however, Prometheus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: OpenTelemetry instead of OpenCensus. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to replace all mentions of OpenCensus with OpenTelemetry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - also change references to ocagent to otelsvc.
http_requests_total{method="post",code="200"} 1028 | ||
http_requests_total{method="post",code="400"} 5 | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate sentence for how the first scrape is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -232,16 +239,27 @@ Counter as described in the [Prometheus Metric Types Document](https://prometheu | |||
> is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be | |||
> reset to zero on restart | |||
|
|||
It is one of the most simple metric types we can be found in both systems. Examples of Prometheus Counters is as shown | |||
below: | |||
It is one of the most simple metric types we can find in both systems. However, it is a cumulative type of metric, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: 'we can find' -> 'found' ie simple metrics types found in both systems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
It is one of the most simple metric types we can be found in both systems. Examples of Prometheus Counters is as shown | ||
below: | ||
It is one of the most simple metric types we can find in both systems. However, it is a cumulative type of metric, | ||
considering with have two continuous scrapes from a target, with the first one as shown below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reword 'considering with have two continuous scrapes'? It is a bit hard to follow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -403,12 +441,19 @@ Prometheus. We have to set this value to `0` instead. | |||
|
|||
### Gaugehistogram | |||
|
|||
This is an undocumented data type, it shall be same as regular [Histogram](#histogram) | |||
This is an undocumented data type, and it's not supported currently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: full stop at the end of the sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
provided in Prometheus, and `nil` will be used for these values. | ||
|
||
Other than that, in some prometheus implementations, such as the Python version, Summary is allowed to have no quantiles, in a case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: full stop at the end of the sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
* Added Jaeger gRPC receiver Signed-off-by: Juraci Paixão Kröhling <[email protected]> * Addressed first review round Signed-off-by: Juraci Paixão Kröhling <[email protected]> * Changes based on the feedback from the second review Signed-off-by: Juraci Paixão Kröhling <[email protected]> * Fixed import order, check for same ip:port on endpoints Signed-off-by: Juraci Paixão Kröhling <[email protected]> * Reverted the port-check Signed-off-by: Juraci Paixão Kröhling <[email protected]>
Signed-off-by: Hui Kang <[email protected]>
Refactored oc exporter code to make it easier to import in derived builds without copying all the code. Example derived exporter: https://github.com/owais/example-derived-oc-exporter - Moved internal/compression to root - Split opencensusexporter factory's `CreateTraceExporter` method into - `OCAgentOptions` and `CreateOCAgent`
MD5 is insecure cryptographic hash functions, and are therefore unsuitable for security applications.
* Add goimports check and fix import order for all files Updates #155. * Try specifying a version for goimports * Show the diff instead of files and fix import * Fix default in Makefile
* Add factory and update config for tail sampling processor Updates #146 * Move to package processor * Remove an unnecessary check * Move CreateDefaultConfig to factory and add unit tests * Fix test failure * Remove commented code
* Add misspell check and fix all typos Updates #155. * Format * Include yaml files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read the text but very little of the code, I know that there were already a detailed code review on OCSvc repo. Just for sanity I will finish a quick pass tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase and resolve the merge conflicts.
* Add Observability Vision document This is a guidance document that developers can consult with when working on improving own observability of OpenTelemetry Service. * PR fixes
* Add Zipkin exporter factory Add the Zipkin exporter configuration factory using the new configuration format. This does not bring many of the settings from the old configuration since they won't be used. In a sub-sequent PR the code of the exporter itself will be changed. * PR Feedback: add 1 test plus some comments * Rename endpoint to http-url and related field * Fix goimports issue * Remove TODO commented code Replaced the TODO commented code with an issue. * Rename the field used to specify destination
* First round of receiver and opencensus receiver documentation. * Undo go mod/sum changes * Address initial set of comments. * Address next set of comments. * Address next set of comments. * Fix use of server instead of receiver in comment and explain settings can be mix and matched. * Merged master and fixed mispell error caugh with new tools
* Add static check Fixes #155. * Fix most staticcheck errors * More fixes * Fix id_batcher
The paramater was named exportFormat but it actually used as the exporter name.
* Add Jaeger gRPC exporter Adds a Jaeger gRPC exporter. * Update exporters/README.md * Fixes on the exporter/README.md * Add doc.go with package description. * Fix import order on config_test.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hit @dinooliva - I did a quick pass and seems good, could you please rebase so we can be sure that all is well?
Thanks @pjanotti - I've rebased and fixed issues from the new static checks, should be good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks! When do you think this can be merged? |
Merged it is, thanks @dinooliva. |
* Add Linux support bundle script - Ensure executable - Update troubleshooting guide with support case details - Move upstream troubleshooting from README.md to troubleshooting.md - Add tests to existing installer_test * Attempt to fix execution bit * Address feedback * Update docs/troubleshooting.md Co-authored-by: Ryan Fitzpatrick <[email protected]> * Update docs/troubleshooting.md Co-authored-by: Ryan Fitzpatrick <[email protected]> * Update docs/troubleshooting.md Co-authored-by: Ryan Fitzpatrick <[email protected]>
No description provided.