Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Update index.md to use main
Browse files Browse the repository at this point in the history
  • Loading branch information
jtl-novatec authored Apr 17, 2024
1 parent 10367d8 commit 22d9386
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tutorial/content/labs/instrumentation/manual/metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ from metric_utils import create_meter

# global variables
app = Flask(__name__)
meter = create_meter("app.py", "0.1")

if __name__ == "__main__":
# setup metrics
meter = create_meter("app.py", "0.1")
```

Finally, open `app.py` and import `create_meter`.
Expand Down Expand Up @@ -783,4 +786,4 @@ As a result, the Prometheus server tries to bind to a port a second time, which
To fix this, set the debug parameter to False.
Start the app and open [localhost:8000](localhost:8000) in your browser.
You should now see the metrics being exported in Prometheus text-based exposition format.
-->
-->

0 comments on commit 22d9386

Please sign in to comment.