Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Stats/Prometheus: export data using metrics API #1509

Merged
merged 2 commits into from
Oct 25, 2018
Merged

Stats/Prometheus: export data using metrics API #1509

merged 2 commits into from
Oct 25, 2018

Conversation

mayurkale22
Copy link
Member

This PR is part of #1483

@codecov-io
Copy link

codecov-io commented Oct 22, 2018

Codecov Report

Merging #1509 into master will increase coverage by 0.03%.
The diff coverage is 81.08%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1509      +/-   ##
============================================
+ Coverage      82.6%   82.63%   +0.03%     
- Complexity     1648     1661      +13     
============================================
  Files           251      251              
  Lines          7782     7803      +21     
  Branches        743      755      +12     
============================================
+ Hits           6428     6448      +20     
+ Misses         1129     1128       -1     
- Partials        225      227       +2
Impacted Files Coverage Δ Complexity Δ
...ter/stats/prometheus/PrometheusStatsCollector.java 71.05% <54.54%> (+0.9%) 9 <1> (+2) ⬆️
...porter/stats/prometheus/PrometheusExportUtils.java 94.44% <92.3%> (-1.39%) 27 <19> (+10)
...census/implcore/trace/export/SpanExporterImpl.java 93.15% <0%> (+1.36%) 8% <0%> (ø) ⬇️
...main/java/io/opencensus/metrics/export/Metric.java 92.59% <0%> (+7.4%) 10% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c9c152...a7576e2. Read the comment docs.

* Type#GAUGE} and {@link Distribution} will be {@link Type#HISTOGRAM}. Please note we cannot set
* bucket boundaries for custom {@link Type#HISTOGRAM}.
* <p>Each OpenCensus {@link Metric} will be converted to a Prometheus {@link MetricFamilySamples},
* and each {@code Row} of the {@link Metric} will be converted to Prometheus {@link Sample}s.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Row/Point

Copy link
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mayurkale22 mayurkale22 merged commit 056069f into census-instrumentation:master Oct 25, 2018
@mayurkale22 mayurkale22 deleted the stats_prometheus_metrics_api branch October 25, 2018 15:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants