Skip to content

TelegrafAppenderResponse

Gianluca Sartori edited this page Feb 3, 2023 · 2 revisions

This Response type is used to write Extended Events data to telegraf in order to be collected from the standard output by execd plugin.

The target measurement is created automatically and it contains tags and fields according to the configuration specified.

Properties

  • string OutputMeasurement: Name of the measurement where the data is written

  • string OutputTags: List of the tags to add to the data point. Each data point can be a field/action from the source Extended Event. Tags are indexed columns and can be used to filter, group and sort data.

  • string OutputFields: List of the fields to add to the data point. Each data point can be a field/action from the source Extended Event. Fields are simple data columns and don't have any index associated. This is suitable for long strings or for numeric values.

Example

{
    "Target": {
        "ServerName": "(local)\\SQLEXPRESS",
        "SessionName": "errors",
        "FailOnProcessingError": false,
        "Responses": [
            {
                "__type": "TelegrafAppenderResponse",
                "Events": [
                    "error_reported"
                ],
                "OutputMeasurement": "sqlserver_events_errors",
                "OutputTags": [
                    "server_instance_name",
                    "name", 
                    "client_app_name", 
                    "server_principal_name", 
                    "client_hostname", 
                    "database_name",
                    "severity",
                    "error_number"
                ],
                "OutputFields": [
                    "message"
                ]
            }
        ]
    }
}

Clone this wiki locally