Recovered from panic while fetching 'azure/app_insights' for host ''. [AZURE]


I'm trying to send app_insights metric via metric beat to elastic.
I can't see any reference to 'host' in the app_insight docs

Any suggestion on how to solve this panic error

I found the cause of the error, where the host is set in the configuration file ?

2021-02-03T16:08:07.607+0200    DEBUG   [module]        module/wrapper.go:189   Starting metricSetWrapper[module=azure, name=app_insights, **host=]**

This is my configuration

  >   metricbeat.modules:
> - module: azure
>   metricsets:
>     - app_insights
>   enabled: true
>   period: 10s
>   application_id: '******'
>   api_key: '****'
>   metrics:
>     - id: ["requests/count", "requests/duration","performanceCounters/processorCpuPercentag"]
>       segment: "request/name"
>       aggregation: ["sum"]

stack trace

> ERROR   runtime/panic.go:212    recovered from panic while fetching 'azure/app_insights' for host ''. Recovering, but please report this.    {"panic": "runtime error: invalid memory address or nil pointer dereference", "stack": "\n\t/go/src/\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:969\nruntime.panicmem\n\t/usr/local/go/src/runtime/panic.go:212\nruntime.sigpanic\n\t/usr/local/go/src/runtime/signal_windows.go:246\\n\t/go/src/\\n\t/go/src/\*MetricSet).Fetch\n\t/go/src/\*metricSetWrapper).fetch\n\t/go/src/\*metricSetWrapper).startPeriodicFetching\n\t/go/src/\*metricSetWrapper).run\n\t/go/src/\*Wrapper).Start.func1\n\t/go/src/"}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.