External telemetry – integrating insights from external sources
In the Custom data sources – Azure Monitor REST API section, we mentioned that Azure Monitor provides a REST API called Logs Ingestion API for sending logs to the Log Analytics workspace. This can be done using a REST API call or client libraries (.NET, Go, Java, JavaScript, and Python), but the ingestion is supported for a limited set of Azure tables and any custom table created in the Log Analytics workspace.
The next diagram illustrates the necessary steps for sending data to the Logs Ingestion API:
Figure 3.14 – The Logs Ingestion API flow
While submitting a custom metric was a straightforward task, submitting custom logs requires a more complex process. Like the previous case, it starts with the obtention of the required authentication tokens to be able to submit the information. After that, we need to enable a data collection endpoint (DCE) inside Azure Monitor...