-
Notifications
You must be signed in to change notification settings - Fork 227
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
Redis/MySQL/... remote services don't differentiate hosts #2406
Comments
@MartinKolarik Thanks! I think more the latter. The service map is using the I am asking around internally first and will likely either start an spec discussion issue and link here, or transfer this one to be that. |
Though it says "for SQL Databases", elastic/apm#473 is basically the same issue here: increasing the granularity on the data collected by APM agents for backends (often DBs) and using that data in the APM UI (Service Map and Dependencies). My inclination is to close this issue and add a note to elastic/apm#473. Currently that issue is the best one for you to follow our plans and work on this. There is active internal discussion for improving this, but no current public timeline yet. In the short term, here is a possible inadvisable :) hack: add a span filter that cheats by munging the
You could have a span filter that pulls out that "address" field and appends it to the "resource" value. Be warned that this'll break future efforts by Elastic APM to automatically do this generally -- and possibly more "safely" by watching out for cardinality issues in the "resource" value. |
Agree, elastic/apm#473 is the same type of problem, it just needs to be addressed more broadly. |
This might be answered when #2621 is done. |
Describe the bug
We have multiple redis servers in use - some services use their own redis available on localhost, some access a shared remote instance by its IP. The Service Map view in APM doesn't differentiate between these hosts and shows all of them as a single "redis" node used by all services. The same happens e.g., with MySQL, while HTTP remote services are correctly split by their hostname.
I'm not entirely sure if this is just the node agent not collecting all the necessary info, or a broader issue with the services spec, so feel free to move this issue to the right place if it's not directly the agent's fault.
Environment (please complete the following information)
How are you starting the agent? (please tick one of the boxes)
agent.start()
directly (e.g.require('elastic-apm-node').start(...)
)elastic-apm-node/start
from within the source code-r elastic-apm-node/start
Additional context
package.json
dependencies:Click to expand
Using the
redis
module in some cases andioredis
in others, in case it's relevant.The text was updated successfully, but these errors were encountered: