Configuring an OpenTelemetry collector for API discovery
How to add an OpenTelemetry collector to your API discovery capability. The collector can be based on an Istio or an NGINX data source.
Before you begin
- You need to download both the helm chart and collector image from https://github.com/ibm-apiconnect/api-discovery-otel-collector/.
- You must have the Helm package manager for Kubernetes installed on your client. For more information, see the Helm installation guide at https://helm.sh/docs/intro/install/.
- If your data source is Istio:
- You must have Istio installed on your cluster where you want to discover the API traffic from. If you don't have Istio installed, see the Getting Started guide at https://istio.io/latest/docs/setup/getting-started/.
- You need to deploy both the Istio mesh, and the sample application. For more information, see the Istio Getting Started guide at https://istio.io/latest/docs/setup/getting-started/.
- If your data source is NGINX:
- You must have NGINX installed on your cluster where you want to discover the API traffic from. If you don't have NGINX installed, see the NGINX installation guide at https://docs.nginx.com/nginx/admin-guide/installing-nginx/.
- Organization Administrator
- Owner
- Custom role with the
Settings: Manage
permission.
About this task
API discovery is an optional add-on to IBM® API Connect that can be used to discover and add APIs to your API development process. Before you can discover any APIs, you must configure one or more data source collectors. These collectors then get automatically added to the Sources tab in the API Manager UI when the collector sends the first OpenAPI documents to your provider organization.
To configure an API discovery OpenTelemetry collector, you must configure your Istio or NGINX data source, and then deploy the collector by using a Helm chart. After the collector is deployed, any pods that have API traffic running through Envoy then send this data to API Connect. The OpenAPI documents can then be copied to draft APIs as required, to enable full lifecycle management in API Manager.
Procedure
Results
What to do next
You can click the APIs tab in the Discover section of the API Manager UI, and review the API traffic. For more information, see Reviewing your discovered APIs.
helm template . | kubectl delete -f -