Skip to content
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

T6477: Add telegraf loki output plugin #3720

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

sever-sever
Copy link
Member

Change Summary

Add Loki plugin to telegraf

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

telegraf

Proposed changes

How to test

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@sever-sever
Copy link
Member Author

@Mergifyio backport circinus sagitta

Copy link

mergify bot commented Jun 26, 2024

backport circinus sagitta

✅ Backports have been created

@c-po
Copy link
Member

c-po commented Jun 27, 2024

Should there probably a verify() check that if username is specified, so must be password and vice versa?

@sever-sever
Copy link
Member Author

Should there probably a verify() check that if username is specified, so must be password and vice versa?

Done!

port = '3100'

self.cli_set(base_path + ['loki', 'url', loki_url])
self.cli_set(base_path + ['loki', 'port', port])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add test code for username and password and also check if the exception is present when only username is specified but no password

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Add Loki plugin to telegraf

set service monitoring telegraf loki url xxx
@c-po c-po merged commit f36271b into vyos:current Jun 28, 2024
11 of 12 checks passed
dmbaturin added a commit that referenced this pull request Jun 28, 2024
T6477: Add telegraf loki output plugin (backport #3720)
Copy link

❌ VyOS CLI smoketests failed!

c-po added a commit that referenced this pull request Jul 1, 2024
T6477: Add telegraf loki output plugin (backport #3720)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants