Skip to content

Azure: Add blob collector stub#893

Merged
suntala merged 12 commits intomainfrom
suntala/azure-object-storage
Apr 16, 2026
Merged

Azure: Add blob collector stub#893
suntala merged 12 commits intomainfrom
suntala/azure-object-storage

Conversation

@suntala
Copy link
Copy Markdown
Contributor

@suntala suntala commented Apr 10, 2026

For #54

Adds an Azure blob cost collector behind -azure.services blob, including metrics wiring that follows the same gatherer pattern as AKS (cost vec collected via Collect rather than separate registration). Azure startup now skips collectors that fail to construct—logging the error and continuing—matching AWS behavior so one bad service does not stop the whole provider.

How to check it locally:

First run the exporter:

go run ./cmd/exporter/exporter.go \
  -provider azure \
  -azure.subscription-id "$(az account show --query id -o tsv)" \
  -azure.services blob \
  -log.level=info \
  -log.type=text

Then scrape the metrics:

curl -s localhost:8080/metrics | grep -E 'azure_blob|collector='

@suntala suntala force-pushed the suntala/azure-object-storage branch from 66153e2 to 90e8621 Compare April 10, 2026 09:43
@suntala suntala force-pushed the suntala/azure-object-storage branch from ce363d2 to 60d583d Compare April 10, 2026 10:24
@suntala suntala force-pushed the suntala/azure-object-storage branch from 6d9ba2a to bbd2b42 Compare April 10, 2026 11:50
@suntala suntala force-pushed the suntala/azure-object-storage branch from bbd2b42 to 94ec06b Compare April 10, 2026 12:28
Comment thread pkg/azure/blob/blob.go Outdated
Comment thread pkg/azure/azure.go Outdated
@suntala suntala changed the title Azure: Add stub blob collector Azure: Add blob collector stub Apr 10, 2026
@suntala suntala marked this pull request as ready for review April 10, 2026 16:10
@suntala suntala requested a review from a team April 10, 2026 16:11
Comment thread pkg/azure/azure.go
Comment thread cmd/exporter/exporter.go Outdated
Comment thread docs/metrics/azure/blob.md Outdated
Comment thread docs/metrics/azure/blob.md Outdated
Comment thread docs/metrics/azure/blob.md Outdated
Comment thread cmd/exporter/exporter.go Outdated
@suntala suntala force-pushed the suntala/azure-object-storage branch from 2ce4250 to e063c6d Compare April 13, 2026 15:09
Comment thread pkg/azure/blob/blob.go Outdated
Comment thread pkg/azure/blob/blob.go Outdated
Comment thread docs/metrics/azure/blob.md Outdated
Comment thread pkg/azure/blob/blob_test.go Outdated
Copy link
Copy Markdown
Contributor

@rooneyshuman rooneyshuman left a comment

Choose a reason for hiding this comment

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

🚀

@suntala suntala merged commit 87587eb into main Apr 16, 2026
12 checks passed
@suntala suntala deleted the suntala/azure-object-storage branch April 16, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants