-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
New component: receiver/mysqlrecordsreceiver #12082
Comments
Quick comment on the state management: to persist the state make sure to use the existing |
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 |
I believe that instead of creating a new component, it makes more sense to re-use the SQL Query receiver, which already does this for metrics - it runs SQL queries and transforms the results into metrics. We should extend that receiver by adding logs support instead of creating a new component. I've created an issue for this here: |
Hi @astencel-sumo. I agree with your suggestion of extending the SQL Query Receiver. I hope the use cases here above get implemented with the state management feature modified using persistent storage as mentioned in the new issue. Looking forward towards this contribution :) |
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 |
Closing this as the SQL Query receiver now supports logs collection. |
The purpose and use-cases of the new component
This receiver queries MySQL for database records and creates a log record for each database record.
Use Cases
'BasicAuth' Password Authentication Mode Use Case:
'BasicAuth' Password Encryption Use Case:
'IAMRDSAuth' Password Authentication Mode Use Case:
State Management Use Case:
Example configuration for the component
Overall config fields:
Example MySQL reference:
mysql> select * from Persons where PersonID = 3;
+----------+----------+-----------+----------+----------+
| PersonID | LastName | FirstName | Address | City |
+----------+----------+-----------+----------+----------+
| 3 | Kalita | Raktim | Hatigaon | Guwahati |
+----------+----------+-----------+----------+----------+
1 row in set (0.01 sec)
Example config:
Example logging exporter console output:
Resource SchemaURL:
ScopeLogs #0
ScopeLogs SchemaURL:
InstrumentationScope
LogRecord #0
Timestamp: 1970-01-01 00:00:00 +0000 UTC
Severity:
ShortName:
Body: {"Address":"Hatigaon","City":"Guwahati","FirstName":"Raktim","LastName":"Kalita","PersonID":"3"}
Trace ID:
Span ID:
Flags: 0
Telemetry data types supported
logs
Is this a vendor-specific component? If so, are you proposing to contribute this as a representative of the vendor?
not really a vendor specific component, but trying to contribute as a Sumo Logic representative.
Sponsor (Optional)
The text was updated successfully, but these errors were encountered: