-
Notifications
You must be signed in to change notification settings - Fork 1.9k
out_stackdriver: Support generic resources. #2992
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
Conversation
Added generic_node and generic_task as supported resources. Of note: Both credential files or custom metadata server work for auth. Credential file is preferred, but if you choose the metadata server then it will need to also return the call for project_id. Testing covers both of those cases. Signed-off-by: Joey DeStefanis <jdestefanis@google.com>
|
Debug output:
[2021/01/29 07:34:14] [ info] Configuration: [2021/01/29 07:34:14] [debug] [output:stackdriver:stackdriver.0] HTTP Status=200 [2021/01/29 07:34:14] [debug] [output:stackdriver:stackdriver.0] HTTP Status=200 [2021/01/29 07:34:29] [debug] [output:stackdriver:stackdriver.0] HTTP Status=200 |
|
Example Config (relevant part) w/ metadata server (which works fine on GCE with the default GCE metadata server) w/ cred file |
Checking resource caused a memory leak, but checking node_id for non-null fixes that for both generic_node and generic_task. Signed-off-by: Joey DeStefanis <jdestefanis@google.com>
|
Valgrind output: valgrind --leak-check=full /usr/local/bin/fluent-bit -c /usr/local/etc/fluent-bit/fluent-bit.conf
[2021/01/29 08:02:58] [ info] [engine] started (pid=1056784) |
|
Documentation update is waiting for fluent/fluent-bit-docs#444 to be merged first. |
|
@igorpeshansky or @hsmatulisgoogle Could you have a look here? |
hsmatulis
left a comment
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.
The logic looks fine, although I have a couple nitpicks
Also remove a wild newline. Signed-off-by: Joey DeStefanis <jdestefanis@google.com>
igorpeshansky
left a comment
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.
Some minor comments.
VSCode strikes again. Signed-off-by: Joey DeStefanis <jdestefanis@google.com>
igorpeshansky
left a comment
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.
LGTM ![]()
|
thanks everyone |
|
Doc update: fluent/fluent-bit-docs#459 |
Added generic_node and generic_task as supported resources.
Of note:
Both credential files or custom metadata server work for auth.
Credential file is preferred, but if you choose the metadata server
then it will need to also return the call for project_id.
Testing covers both of those cases.
Apparently my client was also confused about an old change when I merged my branch which is why METADATA_SERVER_URL gets fixed again here.
Signed-off-by: Joey DeStefanis jdestefanis@google.com
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
Documentation
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.