You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added option to send report to Azure Blob Storage, as well as optionally
notify a Teams Channel provided a webhook URL. If using the teams
webhook alert, then an `azure-subscription-id` and
`azure-resource-group` is required.
Users can use the following new flags when running the program:
- `--azurebloboutput "Blob Service SAS URL Here" `
- `--teams-webhook "Teams Webhook URL Here" `
- `--azure-subscription-id "Azure Subscription ID Here" `
- `--azure-resource-group "Azure Resource Group Name Here" `
Documentation is added to README.
[](#integrations)
83
83
84
-
_View instructions for: [Seeing recommendations in a UI](#free-ui-for-krr-recommendations), [Sending recommendations to Slack](#slack-notification), [Setting up KRR as a k9s plugin](#k9s-plugin)_
84
+
_View instructions for: [Seeing recommendations in a UI](#free-ui-for-krr-recommendations), [Sending recommendations to Slack](#slack-notification), [Setting up KRR as a k9s plugin](#k9s-plugin), [Azure Blob Storage Export with Teams Notification](#azure-blob-teams-integration)_
- Direct "View in Azure Storage" button linking to Azure Portal
758
+
759
+
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
760
+
761
+
</details>
762
+
685
763
## Creating a Custom Strategy/Formatter
686
764
687
765
Look into the [examples](https://github.com/robusta-dev/krr/tree/main/examples) directory for examples on how to create a custom strategy/formatter.
@@ -768,3 +846,4 @@ If you have any questions, feel free to contact **[email protected]** or messa
Copy file name to clipboardExpand all lines: robusta_krr/main.py
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,30 @@ def run_strategy(
266
266
help="Send to output to a slack channel, must have SLACK_BOT_TOKEN with permissions: chat:write, files:write, chat:write.public. Bot must be added to the channel.",
267
267
rich_help_panel="Output Settings",
268
268
),
269
+
azureblob_output: Optional[str] =typer.Option(
270
+
None,
271
+
"--azurebloboutput",
272
+
help="Provide Azure Blob Storage SAS URL (with the container) to upload the output file to (e.g., https://mystorageaccount.blob.core.windows.net/container?sv=...). The filename will be automatically appended.",
273
+
rich_help_panel="Output Settings",
274
+
),
275
+
teams_webhook: Optional[str] =typer.Option(
276
+
None,
277
+
"--teams-webhook",
278
+
help="Microsoft Teams webhook URL to send notifications when files are uploaded to Azure Blob Storage",
0 commit comments