You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/02/22 09:28:22 UTC
[GitHub] [skywalking] katelei6 opened a new issue #8568: [Bug] Skywalking-python not get the metric by Django+uwsgi
katelei6 opened a new issue #8568:
URL: https://github.com/apache/skywalking/issues/8568
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
### Apache SkyWalking Component
Python Agent (apache/skywalking-python)
### What happened
when I use run manager.py, the ui can get the metric.
when I use uwsgi to run it, the ui can not get the endpoint.
<img width="1607" alt="image" src="https://user-images.githubusercontent.com/79354895/155101925-2cc089d5-53aa-4981-add6-fb0af32aa3e7.png">
wsgi.py
from __future__ import absolute_import
import os
from django.core.wsgi import get_wsgi_application
from skywalking import agent, config
config.init(collector_address='127.0.0.1:12800', service_name='test')
agent.start()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jcdp.settings")
application = get_wsgi_application()
### What you expected to happen
I think in the ui ,we can get the metric, the endpoint,
but actually, there is noting.
### How to reproduce
1. pip install apache-skywalking
2. edit the wsgi.py
from __future__ import absolute_import
import os
from django.core.wsgi import get_wsgi_application
from skywalking import agent, config
config.init(collector_address='127.0.0.1:12800', service_name='test')
agent.start()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jcdp.settings")
application = get_wsgi_application()
3. run the server
### Anything else
I see the other issue.
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org