Skip to content

Commit

Permalink
Update metrics.md (census-instrumentation#727)
Browse files Browse the repository at this point in the history
To export metrics `opencensus-ext-prometheus` python package needs to be installed. And a different package needs to be imported in the code to export to prometheus.
  • Loading branch information
munirhossain authored Feb 13, 2020
1 parent ab8c69a commit d5b2009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/quickstart/python/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You can swap out any other exporter from the [list of Python exporters](/exporte
{{% /notice %}}

## Installation
`pip install --upgrade opencensus prometheus-client`
`pip install --upgrade opencensus opencensus-ext-prometheus prometheus-client`


## Brief Overview
Expand Down Expand Up @@ -283,7 +283,7 @@ def setupOpenCensusAndPrometheusExporter():
import sys
import time

from opencensus.stats.exporters import prometheus_exporter as prometheus
from opencensus.ext.prometheus import stats_exporter as prometheus

from opencensus.stats import aggregation as aggregation_module
from opencensus.stats import measure as measure_module
Expand Down

0 comments on commit d5b2009

Please sign in to comment.