open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.02k stars 2.33k forks source link

Azure Monitor : Metric Receiver(REST Client) #20776

Closed rajim17 closed 1 year ago

rajim17 commented 1 year ago

The purpose and use-cases of the new component

This component is to collect metrics from Azure Monitor platform and parse into OTLP metric format. Azure Monitor provides OS/CPU and major resource level metrics users are interested. List of metrics supported by Azure Monitor can be found here.

Component also provides a way to configure interested metric namespaces to collect.

Example configuration for the component

receivers:
    azuremetric/5_min:
        subscription_id: <azure_subscription_1> // (mandatory) Azure subscription ID
        collection_interval:300
        timegrain: <1M> //  ( optional: default 1M ) fetch 1 min interval metrics for the past 5 mins
        metric_providers: // metric namespace of the resource providers 
            - microsoft.analysisservices/servers
            - microsoft.apimanagement/service                       
            - microsoft.cdn/profiles                                 
            - microsoft.storage/storageaccounts                     
            - microsoft.network/networksecuritygroups               
            - microsoft.network/privatednszones/virtualnetworklinks 
            - microsoft.network/routetables                         
            - microsoft.dbformysql/servers                          
            - microsoft.cache/redis                                 
            - microsoft.compute/virtualmachines                     
            - microsoft.compute/virtualmachinescalesets             
            - microsoft.streamanalytics/streamingjobs 

Telemetry data types supported

Metrics

Is this a vendor-specific component?

Sponsor (optional)

No response

Additional context

nslaughter commented 1 year ago

Thank you for opening this, @rajim17. It sounds very similar to issue #18899 which has an open PR in #18898. Could it potentially help with your use case if you provide review on that PR and/or improve the specification in the issue?

rajim17 commented 1 year ago

@nslaughter Thanks for pointing out. I should be able to contribute. I will review and add my comments

github-actions[bot] commented 1 year ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

github-actions[bot] commented 1 year ago

This issue has been closed as inactive because it has been stale for 120 days with no activity.