-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new output plugin for Azure Data Explorer(ADX) #9426
Conversation
.create-or-alter table ['table-name'] ingestion json mapping 'table-name_mapping' '[{"column":"fields", "Properties":{"Path":"$[\'fields\']"}},{"column":"name", "Properties":{"Path":"$[\'name\']"}},{"column":"tags", "Properties":{"Path":"$[\'tags\']"}},{"column":"timestamp", "Properties":{"Path":"$[\'timestamp\']"}}]' | ||
``` | ||
|
||
**Note**: This plugin will automatically create Azure Data Explorer tables and corresponding table mapping as per the above mentioned commands. Since the `Metric` object is a complex type, the only output format supported is JSON, so make sure to set the `data_format` configuration in `telegraf.conf` to `json`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're creating the serializer yourself manually, you don't need to tell users to set the serializer to json.
expectedWriteError string | ||
}{ | ||
{ | ||
name: "Valid metric", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you could add a test that verifies that fields and tags and timestamps are serialized properly.
rename namespace to tableName
Case Insensitive MetricsGrouping
As suggested by @sjwang90, adding new feature in plugin in the same PR. This feature allows to add all the metrics into a single Azure Data Explorer(ADX) table rather than creating separate ADX table for each metric. This is just to provide flexibility for the end users in case they don't want to use joins across different ADX tables that feed their monitoring dashboards. |
Looks like new artifacts were built from this PR. Get them here!Artifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still fine with me.
Fix lint issues in main for final PR
Required for all PRs:
It resolves #9230
It is a new output plugin for Azure Data Explorer, its been tested with SQL Server input plugin but it can work with any input plugin of Telegraf.