-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-otlpexporter-preferred-aggregation
- Loading branch information
Showing
12 changed files
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
docs/examples/fork-process-model/flask-gunicorn/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
click==7.1.2 | ||
Flask==2.3.2 | ||
click==8.1.7 | ||
Flask==2.3.3 | ||
googleapis-common-protos==1.52.0 | ||
grpcio==1.56.0 | ||
gunicorn==20.0.4 | ||
itsdangerous==1.1.0 | ||
Jinja2==2.11.3 | ||
MarkupSafe==1.1.1 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.3 | ||
opentelemetry-api==1.20.0 | ||
opentelemetry-exporter-otlp==1.20.0 | ||
opentelemetry-instrumentation==0.41b0 | ||
opentelemetry-instrumentation-flask==0.41b0 | ||
opentelemetry-instrumentation-wsgi==0.41b0 | ||
opentelemetry-sdk==1.20.0 | ||
protobuf==3.18.3 | ||
protobuf==3.19.4 | ||
six==1.15.0 | ||
thrift==0.13.0 | ||
uWSGI==2.0.22 | ||
Werkzeug==2.2.3 | ||
wrapt==1.12.1 | ||
Werkzeug==3.0.1 | ||
wrapt==1.16.0 |
16 changes: 8 additions & 8 deletions
16
docs/examples/fork-process-model/flask-uwsgi/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
click==7.1.2 | ||
Flask==2.3.2 | ||
click==8.1.7 | ||
Flask==2.3.3 | ||
googleapis-common-protos==1.52.0 | ||
grpcio==1.56.0 | ||
gunicorn==20.0.4 | ||
itsdangerous==1.1.0 | ||
Jinja2==2.11.3 | ||
MarkupSafe==1.1.1 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.3 | ||
opentelemetry-api==1.20.0 | ||
opentelemetry-exporter-otlp==1.20.0 | ||
opentelemetry-instrumentation==0.41b0 | ||
opentelemetry-instrumentation-flask==0.41b0 | ||
opentelemetry-instrumentation-wsgi==0.41b0 | ||
opentelemetry-sdk==1.20.0 | ||
protobuf==3.18.3 | ||
protobuf==3.19.4 | ||
six==1.15.0 | ||
thrift==0.13.0 | ||
uWSGI==2.0.22 | ||
Werkzeug==2.2.3 | ||
wrapt==1.12.1 | ||
Werkzeug==3.0.1 | ||
wrapt==1.16.0 |
23 changes: 23 additions & 0 deletions
23
docs/examples/metrics/prometheus-grafana/prometheus-monitor.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import random | ||
import time | ||
|
||
from prometheus_client import start_http_server | ||
|
||
from opentelemetry.exporter.prometheus import PrometheusMetricReader | ||
from opentelemetry.metrics import get_meter_provider, set_meter_provider | ||
from opentelemetry.sdk.metrics import MeterProvider | ||
|
||
# Start Prometheus client | ||
start_http_server(port=8000, addr="localhost") | ||
# Exporter to export metrics to Prometheus | ||
prefix = "MyAppPrefix" | ||
reader = PrometheusMetricReader(prefix) | ||
# Meter is responsible for creating and recording metrics | ||
set_meter_provider(MeterProvider(metric_readers=[reader])) | ||
meter = get_meter_provider().get_meter("view-name-change", "0.1.2") | ||
|
||
my_counter = meter.create_counter("my.counter") | ||
|
||
while 1: | ||
my_counter.add(random.randint(1, 10)) | ||
time.sleep(random.random()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
opentelemetry-exporter-prometheus==1.12.0rc1 | ||
protobuf~=3.18.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters