I'm making attempts to instrument Elastic APM with Ruby Grape/Rack following the documentation provided here: https://www.elastic.co/guide/en/apm/agent/ruby/current/getting-started-rack.html.
This is important to us as we are an enterprise consumer and we are currently experiencing a huge bottleneck with limited introspection.
I've forked the repo and have been able to inspect the Elastic APM transaction results locally, but I've seen elsewhere that it should essentially work out of the box (Ruby transactions - workers and grape) with Sidekiq to pass them to Kibana on Elastic Cloud. This is the part I can't seem to figure out and would be grateful for any help. Note, I'm making attempts to do this locally. The only message that I see when I'm in Elastic cloud's dashboard under APM is, "Looks like you don't have any services with APM installed. Let's add some!".
Note, my fork (locally) not updated on my GitHub includes some of the code (with minor changes) following what was listed under this discussion on GH: https://github.com/elastic/apm-agent-ruby/pull/119#issuecomment-411991347 and I've tried this fork: https://github.com/kressh/apm-agent-ruby.
I've double-checked the server URL and server token. Now, I'm wondering if I need to do some sort of an IP safelisting in Elastic Cloud/Kibana or whether I'm missing some additional steps to ensure that the dashboard is populated.
This is what my
elastic_apm.yml looks like:
# Set service name - allowed characters: # a-z, A-Z, 0-9, -, _ and space # # Defaults to the name of your Rails app service_name: 'ElasticAPM' # Use if APM Server requires a token # secret_token: <%= ENV["APM_SECRET"] || '' %> # Set custom APM Server URL ( # default: http://localhost:8200) # server_url: <%= ENV["APM_SERVER_URL"] || '' %>
Thanks in advance!