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

System metrics are not collected #1808

Open
saireddy12 opened this issue Apr 23, 2023 · 1 comment
Open

System metrics are not collected #1808

saireddy12 opened this issue Apr 23, 2023 · 1 comment
Labels
agent-python community Issues opened by the community triage Issues awaiting triage

Comments

@saireddy12
Copy link

Describe the bug: ...

I created a APM service on elastic cloud and using elasticapm on my backend API( FASTAPI + uvicorn + gunicorn) side
i created a client using make_apm_client( APM_SETTINGS_CONFIG )
and the config is:

APM_SETTINGS_CONFIG = {
'SERVICE_NAME': 'backend_fastapi',
'SECRET_TOKEN': ELASTIC_APM_SECRET_TOKEN,
'SERVER_URL': ELASTIC_APM_SERVER_URL,
'ENVIRONMENT': 'my-environment',
'ENABLED': True ,
'TRANSACTION_SAMPLE_RATE' : 0.8,
'API_REQUEST_TIME': "2m" ,
'LOG_LEVEL': 'info',
'TRANSACTION_IGNORE_URLS': ['/v1/greet/','/v1/projects/']
}

fyi , i also installed psutil library

To Reproduce

Environment (please complete the following information)

  • OS: [e.g. Linux]: Linux
  • Python version: 3.10.10
  • Framework and version [e.g. Django 2.1]:FASTAPI
  • APM Server version: 6.15.1
  • Agent version: v8.7.0

i am using Kibana(Observability-> APM->Services->backend_fastapi->Metrics ) to view the metrics

tried DEBUG: True in the config as well but no messages are printed from apm client

thanks.

@github-actions github-actions bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Apr 23, 2023
@basepi
Copy link
Contributor

basepi commented Apr 23, 2023

You'll want LOG_LEVEL: debug, as DEBUG: True is different.

I'd be interested to hear if anything interesting shows up in the logs. I don't see any red flags in our configuration 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-python community Issues opened by the community triage Issues awaiting triage
Projects
None yet
Development

No branches or pull requests

2 participants