Skip to content

feat(inputs.azure_monitor): Support secrets for client_secret#18744

Open
superguillen wants to merge 6 commits intoinfluxdata:masterfrom
superguillen:feat-azure_monitor---add-Add-Secret-support
Open

feat(inputs.azure_monitor): Support secrets for client_secret#18744
superguillen wants to merge 6 commits intoinfluxdata:masterfrom
superguillen:feat-azure_monitor---add-Add-Secret-support

Conversation

@superguillen
Copy link
Copy Markdown

@superguillen superguillen commented Apr 19, 2026

Summary

Checklist

Related issues

resolves #18743

Use config.Secret for client_secret to support secret stores.
Follows pattern from mysql plugin.
- Add TestInit_NoClientID and TestInit_NoTenantID tests
- Update Gather tests to resolve config.Secret before use
- Follow pattern from telegraf-private
Validate subscription_id, client_id, and tenant_id are not empty
before initializing the Azure client. Use errors.New for consistency
with other telegraf plugins.
@superguillen superguillen changed the title Feat azure monitor add secret support feat(inputs.azure_monitor): add secret store support for client_secret field Apr 19, 2026
@telegraf-tiger telegraf-tiger Bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Apr 19, 2026
@srebhan srebhan changed the title feat(inputs.azure_monitor): add secret store support for client_secret field feat(inputs.azure_monitor): Support secrets for client_secret Apr 22, 2026
Copy link
Copy Markdown
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @superguillen! Please find my comments in the code.

Comment thread plugins/inputs/azure_monitor/azure_monitor.go Outdated
Comment thread plugins/inputs/azure_monitor/azure_monitor.go Outdated
Comment thread plugins/inputs/azure_monitor/azure_monitor_test.go Outdated
@srebhan srebhan self-assigned this Apr 22, 2026
superguillen and others added 3 commits April 23, 2026 13:01
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
@telegraf-tiger
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Nice. Thanks @superguillen!

@srebhan srebhan added area/azure Azure plugins including eventhub_consumer, azure_storage_queue, azure_monitor ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Apr 28, 2026
@srebhan srebhan assigned skartikey and unassigned srebhan Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/azure Azure plugins including eventhub_consumer, azure_storage_queue, azure_monitor feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add secret support to azure_monitor

3 participants