APM

すでにログやシステムメトリックをElasticsearchに取り込んでいますか?ElasticのAPMを使用すれば、アプリケーションのメトリックに拡張できます。わずか4行のコードを追加するだけで、速やかに問題を解決するための全体像を描けるようになり、安心してコードをプッシュすることができます。

ElasticのAPMで、パフォーマンスメトリックの可視化が簡単に。 今すぐトライ

New ElasticのAPMがリリース。開発者フレンドリーなUIで、簡単にパフォーマンスの問題を解決できます。 詳細はこちら。

ElasticのAPMをアプリケーションに実装すれば、パフォーマンスメトリックをElasticsearchに送信し、すぐに使えるKibanaのDashboardで可視化できます。

送られたデータはElasticsearchに格納されていますので、インフラのログ、サーバーのメトリック、セキュリティイベントと共存することが可能で、全てのデータを俯瞰することができます。

専用のAPM UIにより、ボトルネックを特定し、問題が発生したコードの変更に目を向けることができます。その結果、開発・テストサイクル、アプリケーションのパフォーマンス、ユーザー体験など、様々なものが向上します。

ElasticのAPMはNode.jsとPythonをサポートしています。他にもRubyやJavaScriptなど、数多くのプログラミング言語をサポートしています。拡張もお手のもの。あなた自身で構築してみることも、オープンソースコミュニティを活用することもできます。

最新版のElastic Stackを準備して、アプリケーションに少し手を入れてエージェントを組み込み、Elasticsearchにデータを送信するサーバーを起動するだけです。
In Elasticsearch install directory:
Once Elasticsearch starts, in Elasticsearch install directory (separate window):

Note the password for elastic user as <es_pw>

Note the password for kibana user as <kibana_pw>

In Kibana install directory:

Modify config/kibana.yml to set credentials for Elasticsearch

elasticsearch.username: "kibana"
elasticsearch.password: "<kibana_pw>"
			
In APM Server install directory:

Optional: Use apm-server setup to import APM dashboards. If you're using an X-Pack secured version of Elastic Stack, you need to specify credentials in the apm-server.yml config file.

Install the APM Agent for Node.js as a dependency to your application.

Configure the agent to run inside your application process.

// Add this to the VERY top of the first file loaded in your app
var apm = require('elastic-apm-node').start({
  // Required app name (allowed characters:a-z, A-Z, 0-9, -, _, and space)
  serviceName: '',
  // Use if APM Server requires a token
  secretToken: '',
  // Set custom APM Server URL (default: http://localhost:8200)
  serverUrl: ''
})
				
Open browser @
http://localhost:5601 (login: elastic/<es_pw>)
Launch the APM app OR navigate to the APM-* dashboards
What just happened?

The APM agent installed in your application collects and streams application performance metrics to your APM server, where they are processed and stored in Elasticsearch. In a matter of minutes you can start viewing these performance metrics either in prebuilt dashboards or in the dedicated APM UI.

Didn't work for you?

Please refer to the APM documentation.

In Elasticsearch install directory:
Once Elasticsearch starts, in Elasticsearch install directory (separate window):

Note the password for elastic user as <es_pw>

Note the password for kibana user as <kibana_pw>

In Kibana install directory:

Modify config/kibana.yml to set credentials for Elasticsearch

elasticsearch.username: "kibana"
elasticsearch.password: "<kibana_pw>"
			
In APM Server install directory:

Optional: Use apm-server setup to import APM dashboards. If you're using an X-Pack secured version of Elastic Stack, you need to specify credentials in the apm-server.yml config file.

Install the APM agent for Python as a dependency.

Configure the agent.

# Add the agent to the installed apps
INSTALLED_APPS = (
   'elasticapm.contrib.django',
   #...
)
ELASTIC_APM = {
   'SERVICE_NAME': '<SERVICE-NAME>', 
   'SECRET_TOKEN': '<SECRET-TOKEN>',
}
# To send performance metrics, add our tracing middleware:
MIDDLEWARE = (
'elasticapm.contrib.django.middleware.TracingMiddleware',
   #...
)
				
Open browser @
http://localhost:5601 (login: elastic/<es_pw>)
Launch the APM app OR navigate to the APM-* dashboards
What just happened?

The APM agent installed in your application collects and streams application performance metrics to your APM server, where they are processed and stored in Elasticsearch. In a matter of minutes you can start viewing these performance metrics either in prebuilt dashboards or in the dedicated APM UI.

Didn't work for you?

Please refer to the APM documentation.

In Elasticsearch install directory:
Once Elasticsearch starts, in Elasticsearch install directory (separate window):

Note the password for elastic user as <es_pw>

Note the password for kibana user as <kibana_pw>

In Kibana install directory:

Modify config/kibana.yml to set credentials for Elasticsearch

elasticsearch.username: "kibana"
elasticsearch.password: "<kibana_pw>"
			
In APM Server install directory:

Optional: Use apm-server setup to import APM dashboards. If you're using an X-Pack secured version of Elastic Stack, you need to specify credentials in the apm-server.yml config file.

Install the APM Agent for Python as a dependency.

Configure the agent.

# initialize using environment variables
from elasticapm.contrib.flask import ElasticAPM
app = Flask(__name__)
apm = ElasticAPM(app)

# or configure to use ELASTIC_APM in your application's settings
from elasticapm.contrib.flask import ElasticAPM
app.config['ELASTIC_APM'] = {
   'SERVICE_NAME': '',
   'SECRET_TOKEN': '',
}

apm = ElasticAPM(app)
Open browser @
http://localhost:5601 (login: elastic/<es_pw>)
Launch the APM app OR navigate to the APM-* dashboards
What just happened?

The APM agent installed in your application collects and streams application performance metrics to your APM server, where they are processed and stored in Elasticsearch. In a matter of minutes you can start viewing these performance metrics either in prebuilt dashboards or in the dedicated APM UI.

Didn't work for you?

Please refer to the APM documentation.

In Elasticsearch install directory:
Once Elasticsearch starts, in Elasticsearch install directory (separate window):

Note the password for elastic user as <es_pw>

Note the password for kibana user as <kibana_pw>

In Kibana install directory:

Modify config/kibana.yml to set credentials for Elasticsearch

elasticsearch.username: "kibana"
elasticsearch.password: "<kibana_pw>"
			
In APM Server install directory:

Optional: Use apm-server setup to import APM dashboards. If you're using an X-Pack secured version of Elastic Stack, you need to specify credentials in the apm-server.yml config file.

Install the APM agent by adding the agent to your Gemfile

Configure the agent by creating the config file config/elastic_apm.yml

# config/elastic_apm.yml
server_url: 'http://localhost:8200'
				

Note: The Ruby agent is currently in Beta and not meant for production use.

Open browser @
http://localhost:5601 (login: elastic/<es_pw>)
Launch the APM app OR navigate to the APM-* dashboards
What just happened?

The APM agent installed in your application collects and streams application performance metrics to your APM server, where they are processed and stored in Elasticsearch. In a matter of minutes you can start viewing these performance metrics either in prebuilt dashboards or in the dedicated APM UI.

Didn't work for you?

Please refer to the APM documentation.

In Elasticsearch install directory:
Once Elasticsearch starts, in Elasticsearch install directory (separate window):

Note the password for elastic user as <es_pw>

Note the password for kibana user as <kibana_pw>

In Kibana install directory:

Modify config/kibana.yml to set credentials for Elasticsearch

elasticsearch.username: "kibana"
elasticsearch.password: "<kibana_pw>"
			
In APM Server install directory:

Optional: Use apm-server setup to import APM dashboards. If you're using an X-Pack secured version of Elastic Stack, you need to specify credentials in the apm-server.yml config file.

Install the APM agent by adding the agent to your Gemfile

Configure the agent by include the middleware in your app and start the agent. Rack or compatible frameworks (like Sinatra):

# config.ru
require 'sinatra/base'
class MySinatraApp < Sinatra::Base
  use ElasticAPM::Middleware

  # ...
end
# Takes optional ElasticAPM::Config values
ElasticAPM.start(
  app: MySinatraApp, # required
  server_url: 'http://localhost:8200'
)
run MySinatraApp
at_exit { ElasticAPM.stop }

Note: The Ruby agent is currently in Beta and not meant for production use.

Open browser @
http://localhost:5601 (login: elastic/<es_pw>)
Launch the APM app OR navigate to the APM-* dashboards
What just happened?

The APM agent installed in your application collects and streams application performance metrics to your APM server, where they are processed and stored in Elasticsearch. In a matter of minutes you can start viewing these performance metrics either in prebuilt dashboards or in the dedicated APM UI.

Didn’t work for you?

Please refer to the APM documentation.

セキュリティイベントも、Webサイトやサーバーのログも、膨大なドキュメントも、Elastic Stackで組み合わせれば、分析の幅を広げ、運用コストを低下させ、ユースケースをさらに充実させることができます。

ログ

高速でスケーラブルなログをリアルタイムに分析。

詳細

メトリックス

CPUやメモリなど、幅広いデータを収集し、分析。

詳細

Swiftype Site Search

ウェブサイトの検索機能を大幅に向上。

詳細

セキュリティ分析

高速かつ大規模な、リアルタイムの異常検知。

詳細

アプリ検索

ドキュメント、地理データなどを検索。

詳細