Site24x7-970x250

Google Launches Machine Query Language in General Availability for Cloud Monitoring

TL;DR

Recently, Google announced the general availability of the Machine Query language used by developers in cloud monitoring. The Machine Query language is built to allow IT developers to perform some metric analysis, charting, root cause analysis, logic study, and several other functions.

MQL has taken Cloud monitoring to a higher level as Google has made this generally available for complex calculations, alerting, processes, operations connections, amongst many others.
MQL has taken Cloud monitoring to a higher level as Google has made this generally available for complex calculations, alerting, processes, operations connections, amongst many others.
Key Facts
  1. 1

    The MQL represents a decade of learnings and vast improvements in the structure of the general metric query language utilized by Google.

  2. 2

    In creating ratio-based charts and important alerts, MQL is useful for such instances.

  3. 3

    In instances where mathematical and logic operations are performed with respect to query languages, MQL can be an available tool to that effect.

  4. 4

    MQL is widely used in the implementation of new labels that can consolidate data and further aggregate them.

  5. 5

    The building blocks of MQL is the operations and functions.

  6. 6

    MQL has successfully taken cloud monitoring to the next level especially in performing arbitrary percentages, calculations, alerting and several other related functions.

Details

Machine Query language is built using functions and operations and is linked to ensuring the building of complex queries incrementally. It is represented with vast learnings and upgrades that have been done over the years on Google’s internal metric query language, and the beauty is that it is now available for Google production and, of course, Cloud users, so they have an opportunity to carry out advanced querying through the Cloud Monitoring Metrics Explorer.

The Cloud Monitoring Metric Explorer can be used to create and follow up on queries as they relate to workspace specifications. As soon as the Query Editor is accessed on the platform, create a query and click the Query editor button then it converts the existing query to an MQL query and the result is shown in the image below:

Metrics Explorer Environment. Image Courtesy: https://www.infoq.com/news/2021/01/google-cloud-monitoring-mql/ Metrics Explorer Environment. Image Courtesy: https://www.infoq.com/news/2021/01/google-cloud-monitoring-mql/

Furthermore, MQL runs on the principle of two building blocks; operations and functions. The operations are connected together through the process where the output of one returns as the input for the next one and this data channelling is called ‘pipe’ idiom.

The ‘pipe’ idiom explains how ‘pipe()’ creates a pipe, a unidirectional data channel that can be used to foster communication between processes. It uses an array called ‘pipefd’ that returns two file descriptors (pipefd[0] & pipefd[1]) which refers to the read and write end of the pipe. This pipe allows the fetching of metrics and applies the operations required using MQL.

In a use case where a distributed web service has been built and ran on the compute engine VM instances with the load balancing feature being utilized, there will be a need to analyze the rate of errors and this interprets the need for monitoring tools. From this process, you can deduce the request-failure ratio report, which shows the ratio of requested HTTP 500 error responses to the system’s total number of requests.

Another use case for MQL is setting up an Alert Policy where a threshold condition can be set in the query, then the required test will run and send a return signal if the required ratio threshold conditions are not met.

Lastly, Time Shifting is another use case for MQL where data can be moved from the past to the current time period so the values could be compared and time analysis could be performed at its best.

MQL has taken Cloud monitoring to a higher level as Google has made this generally available for complex calculations, alerting, processes, operations connections, amongst many others. Check out the documentation, languages, and references to learn more about how Machine Query Language operates.


Get similar news in your inbox weekly, for free

Share this news:
APM-970x250

Latest stories


How ManageEngine Applications Manager Can Help Overcome Challenges In Kubernetes Monitoring

We tested ManageEngine Applications Manager to monitor different Kubernetes clusters. This post shares our review …

AIOps with Site24x7: Maximizing Efficiency at an Affordable Cost

In this post we'll dive deep into integrating AIOps in your business suing Site24x7 to …

A Review of Zoho ManageEngine

Zoho Corp., formerly known as AdventNet Inc., has established itself as a major player in …

Should I learn Java in 2023? A Practical Guide

Java is one of the most widely used programming languages in the world. It has …

The fastest way to ramp up on DevOps

You probably have been thinking of moving to DevOps or learning DevOps as a beginner. …

Why You Need a Blockchain Node Provider

In this article, we briefly cover the concept of blockchain nodes provider and explain why …

Top 5 Virtual desktop Provides in 2022

Here are the top 5 virtual desktop providers who offer a range of benefits such …