Code Monkey home page Code Monkey logo

mertsenel / azure-usage-and-cost-tracking Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 3.0 1003 KB

Sample Azure Native Serverless Cloud Solution, Usage and Cost tracker using Azure Durable Functions(Powershell), Azure Storage, Sendgrid(Email)

Home Page: https://mertsenel.tech/

License: MIT License

PowerShell 97.40% CSS 2.60%
azure azure-functions powershell devops automation serverless azure-log-analytics azure-application-insights azure-durable-functions

azure-usage-and-cost-tracking's Introduction

Azure Native Usage & Cost Tracking

AzureUsageAndCostTracking

ScreenShots:

Azure Portal Dashboard:

A Dashboard that You can Extend & Customize Dashboard

Sample Daily Email Report:

Get a glance of your last 7 days - Daily! not much later. Detect Cost Spikes Sooner Azure-Cost-Report-Sample.png

Powered by Serverless Azure Durable Functions for PowerShell

Fully Powered by Azure Native Technologies AzureDurableFunctions

Better Blob Exports (both JSON & CSV) formats

Blobs are placed in logical YYYY/MM/ path structure with Day.ext format file names, easy to locate and run further ETLs. DailyBlobExports

Azure Storage Table for Long Term Retention

Records will also be stored in a storage table for curating Daily Reports that covers last 7 days. In order to not hit limits of Azure Billing API, I only extract 1 or 2 days worth of data at a time and use table for retro lookups. AzureStorageTableLongTerm

Your Data Your Rules, Logs are also Pushed to a Log Analytics Workspace

This is the data backend for the Azure Portal Dashboard Charts. However, once your logs are here possibilities are endless.

AzureLogAnalyticsShortTermAnalytics

You can create Azure Workbooks, Azure Monitor Alerts or just run your custom queries to deep dive into your Azure usage data.

AzureLogAnalyticsShortTermAnalyticsCustomQueries

Project Naming Legend

Project Details
Project Name: Mert Senel Tech Azure Usage Export
Project ShortCode: mstaue

Environments Code
Development dev
Test tst
Staging stg
Production prd
Azure Resources Code
Function App fnc
Storage Account str
Application Insights ais
Log Analytics Workspace oms
Azure Portal Dashboard dsh
Azure Sendgrid sgd
Project Resources Name
App Service Plan (Consumption/Serverless) {projCode}{env}asp
Function App {projCode}{env}fnc
Function App Storage {projCode}{env}fncstr
Azure Usage Exports Storage {projCode}{env}str
Application Insights {projCode}{env}ais
Log Analytics Workspace {projCode}{env}oms
Azure Usage & Cost Monitoring Dashboard {projCode}{env}dsh
Azure Sendgrid {projCode}{env}sgd

Resources Generated Example: AzureResources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.