Skip to content
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

Stackdriver poll-based metrics #593

Merged
merged 24 commits into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Installation & basic usage

from opencensus.stats import stats as stats_module

stats = stats_module.Stats()
stats = stats_module.stats
view_manager = stats.view_manager
stats_recorder = stats.stats_recorder

Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-prometheus/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Register the Prometheus exporter

.. code:: python

stats = stats_module.Stats()
stats = stats_module.stats
view_manager = stats.view_manager

exporter = prometheus.new_stats_exporter(prometheus.Options(namespace="<namespace>"))
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-prometheus/examples/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


def main():
stats = stats_module.Stats()
stats = stats_module.stats
view_manager = stats.view_manager
stats_recorder = stats.stats_recorder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def test_exporter_constructor_no_namespace(self):

def test_emit(self):
options = prometheus.Options(namespace="opencensus", port=9005)
stats = stats_module.Stats()
stats = stats_module.stats
view_manager = stats.view_manager
stats_recorder = stats.stats_recorder
exporter = prometheus.new_stats_exporter(options)
Expand Down
2 changes: 1 addition & 1 deletion contrib/opencensus-ext-stackdriver/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Register the Stackdriver exporter

.. code:: python

stats = stats_module.Stats()
stats = stats_module.stats
view_manager = stats.view_manager

exporter = stackdriver.new_stats_exporter(stackdriver.Options(project_id="<id_value>"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"task_latency", "The task latency in milliseconds", "ms")

# The stats recorder
stats = stats_module.Stats()
stats = stats_module.stats
view_manager = stats.view_manager
stats_recorder = stats.stats_recorder

Expand Down
Loading