Export IoT connector for FHIR (preview) Metrics through Diagnostic settings

In this article, you'll learn how to export Azure IoT connector for Fast Healthcare Interoperability Resources (FHIR®) Metrics logs. The feature that enables Metrics logging is the Diagnostic settings in the Azure portal.

Tip

Follow the guidance in Enable Diagnostic Logging in Azure API for FHIR and Azure IoT Connector for FHIR to set up audit logging.

Enable Metrics logging for the Azure IoT connector for FHIR (preview)

  1. To enable Metrics logging for the Azure IoT connector for FHIR, select your Azure API for FHIR service in the Azure portal.

  2. Under Monitoring, select the Diagnostic settings.

  3. Select + Add diagnostic setting.

    IoT Connector1

  4. Enter a name in the Diagnostic setting name dialog box.

  5. Select the method you want to use to access your diagnostic logs:

    1. Archive to a storage account for auditing or manual inspection. The storage account you want to use needs to be already created.
    2. Stream to event hub for ingestion by a third-party service or custom analytic solution. You'll need to create an event hub namespace and event hub policy before you can configure this step.
    3. Stream to the Log Analytics workspace in Azure Monitor. You'll need to create your Logs Analytics Workspace before you can select this option.
  6. Select Errors, Traffic, and Latency for the Azure IoT connector for FHIR. Select any additional metric categories you want to capture for Azure API for FHIR.

  7. Select Save.

    IoT Connector2

Note

It might take up to 15 minutes for the first Metrics logs to display in the repository of your choice.

For more information about how to work with diagnostic logs, see Overview of Azure platform logs.

Conclusion

Having access to Metrics logs is essential for monitoring and troubleshooting. Azure IoT connector for FHIR allows you to do these actions through Metrics logs.

Next steps

For more information about the frequently asked questions of Azure IoT connector for FHIR, see

*In the Azure portal, Azure IoT connector for FHIR is referred to as IoT connector (preview). FHIR is a registered trademark of HL7 and is used with the permission of HL7.