You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Splunk HEC has an API health endpoint /services/collector/health, which returns 200 if the service is up. Currently, we don't make use of that in the exporter, we only send a chunk of data and observe if it was successful or not.
Would be good to run one call to the health endpoint when the exporter starts, before we process the data.
Describe the solution you'd like
The /services/collector/health should be configurable (as there is an option to do that in Splunk HEC), and the GET request to that API would be inserted before pushLogData, pushMetricsData, pushTracesData, in sync.Once, so that the request would be done only once. If it fails, consumererror should be returned.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Component(s)
exporter/splunkhec
Is your feature request related to a problem? Please describe.
Splunk HEC has an API health endpoint
/services/collector/health
, which returns200
if the service is up. Currently, we don't make use of that in the exporter, we only send a chunk of data and observe if it was successful or not.Would be good to run one call to the health endpoint when the exporter starts, before we process the data.
Describe the solution you'd like
The
/services/collector/health
should be configurable (as there is an option to do that in Splunk HEC), and the GET request to that API would be inserted beforepushLogData
,pushMetricsData
,pushTracesData
, insync.Once
, so that the request would be done only once. If it fails,consumererror
should be returned.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: