You can install the New Relic C SDK on a Docker container (or other container) to monitor one or more of your C applications.
ヒント
To use the C SDK or any other agent, as well as the rest of our observability platform, join the New Relic family! Sign up to create your free account in only a few seconds. Then ingest up to 100GB of data for free each month. Forever.
Install C SDK in container environment
Requirements:
- Meet C SDK requirements
- C SDK version 1.2 or higher
注意
Data transmitted from the agent to the daemon is not encrypted. We recommend only using a private network connection between the agent and daemon. This only applies when the agent and daemon are running on different hosts.
To install C SDK for a container environment, we recommend installing the C SDK daemon on a separate docker container:
Install the daemon by cloning the C SDK repository and building the daemon. This is done most effectively via the command
make daemon
. See the README.md for further details.If you are using Docker, you can use the C SDK daemon image on Dockerhub.
Start the daemon using
--address
and--watchdog-foreground
arguments. The--address
argument is used to set a port where the daemon is accepting connections. The--watchdog-foreground
argument ensures that the daemon runs in the foreground.
Then, use the C SDK in your containerized application:
- Follow the steps to add the C SDK to your code.
- Point the C SDK to the daemon by adding a
newrelic_init
call and passing a validaddress
argument. The value for this argument must beHOST:PORT
, whereHOST
is the name or IP address of the host where the daemon is running, andPORT
is the port number where the daemon is listening.
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicのデータセキュリティとライセンスドキュメント をご確認ください。