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

Add Azure Monitor Targets #480

Merged
merged 4 commits into from
Apr 6, 2022
Merged

Add Azure Monitor Targets #480

merged 4 commits into from
Apr 6, 2022

Conversation

cam-barts
Copy link
Contributor

What does this do?

Added support for the Azure Monitor Datasource as a target.

Why is it a good idea?

Azure monitor is heavily utilized in my corporate environment at least as a data source, and I suspect in many others as well. Because many of our services are deployed in Azure, we'd love the ability to create dashboards programatically via grafanalib. This contribution is a way for us to give back to the tool we will be heavily utilizing in the near future.

Context

The azure monitor data source exposes 3 types of data to query: Azure Monitor Metrics, Azure Logs, and Azure Resource Graph. They are all outlined on the linked document. I wrote a target and individual tests for each of those types.

Questions

I am pretty certain I'm adhering to the style guides, but my editor runs black on save so there might have been changes that that made that don't align exactly. I didn't spot anything on a cursory look, but if there is anything egregious I am happy to fix.

Copy link
Collaborator

@JamesGibo JamesGibo 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 the PR, I think this will be really useful to other people.
Look good to me although I do not use Azure so cannot test.
Please could you rebase against main?

@JamesGibo JamesGibo merged commit 3289abb into weaveworks:main Apr 6, 2022
@hawk-thinh-tran
Copy link

@cam-barts thanks a lot. We needed this as well. Quick question. In AzureLogsTarget, we are missing the workspace parameter. Might be deprecated in newer versions of grafana because we are still using grafana 7.5.16 in production.

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.

None yet

3 participants