GithubHelp home page GithubHelp logo

az-ama-tf-sample's Introduction

Sample Terraform HCL codes for Azure Monitor Agent (AMA)

Table of Contents

About

Azure Monitor Agent(AMA) is now generally available, but there isn't much information to use at this time. This repository contains Terraform HCL sample codes for AMA. Please use it as a sample in the transition period.

With this sample, you can mainly experience the following:

  • Deploy monitoring services (Azure Monitor Log Analytics workspace, Action Group)
  • Deploy sample monitoring target (VM)
  • Install AMA extention to VM
  • Generate & deploy Data Colletion Rules (VM guest OS performance counters and Syslog)
  • Associate Data Collection Rules to VM
  • Setup Alert Rules
    • VM host metric (CPU usage)
    • VM guest metric (Disk free space)
    • Syslog query (detection specified strings)

Note

The sample codes have some workarouds such as managing Data Collection Rules with templates & Azure CLI.

Support for Azure Monitor Data Collection Rules

These restrictions & lacks of Terraform resource may be improved in the future, so please check the latest information on AMA and Terraform before using.

Getting Started

  1. Deploy shared monitoring service resources
  2. Deploy monitoring target resources

Prerequisites & Tested

  • Terraform: 1.0.4
    • hashicorp/azurerm: 2.71
    • on Linux (need local-exec shell provisioner)
  • Azure CLI: 2.27.1
    • monitor-control-service extension: 0.2.0

az-ama-tf-sample's People

Contributors

torumakabe avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.