惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
量子位
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
A
About on SuperTechFans
腾讯CDC
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
Last Week in AI
Last Week in AI
H
Help Net Security
WordPress大学
WordPress大学
博客园 - 司徒正美
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
博客园 - 【当耐特】
S
SegmentFault 最新的问题
美团技术团队
M
MIT News - Artificial intelligence
L
LangChain Blog
博客园 - 聂微东

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Monitor PlanetScale with Datadog
Nicholas Thomson · 2022-05-27 · via Datadog | The Monitor blog
Nicholas Thomson

Nicholas Thomson

Technical Content Writer

PlanetScale is a serverless, MySQL-compatible database platform powered by Vitess. PlanetScale handles database scaling while also providing you with the tools to increase your development velocity, such as branching, non-blocking schema changes, automatic backups, built-in connection pooling, as well as a helpful interface and CLI.

Datadog’s new integration gives you deep visibility into your PlanetScale databases, so you can optimize your usage and costs. In this post, we’ll show you how to:

  • Monitor queries as you scale

  • Understand your storage bill

  • Track trends in database activity

Get a high-level view of your database metrics with Datadog’s out-of-the-box dashboard

Monitor queries as you scale

Monitoring queries gives you insight into how users are interacting with your application. Now, you can see which tables in your PlanetScale database are being queried the most, and how much time was spent querying those tables. Datadog’s out-of-the-box dashboard provides a Cumulative Query Count Breakdown graph that helps you visualize the number of queries to each table. In the example below, you can see that the majority of queries are directed at the user table.

Monitor your PlanetScale queries

The dashboard also includes a Cumulative Query Time Breakdown graph that shows you how much time was spent querying specific tables. In the graph above, you can see that nearly two thirds of the cumulative query time was spent on the join and user tables. This information can help you make decisions about your database design as you scale up.

Understand your storage bill

PlanetScale bills users based on storage, reads, and writes. With Datadog’s PlanetScale integration, you can see where the majority of your storage spending is going. The out-of-the-box dashboard includes a Storage Breakdown graph that itemizes your storage by table, so you can see which tables are carrying the heaviest load. In this case, the post table is responsible for the vast majority of your storage. This increased visibility will help you understand storage usage patterns and predict how increases will affect costs.

Get deeper visibility into your storage bill

Rows written—which encompasses rows inserted, updated, and deleted—is an important metric to monitor when trying to understand trends in database activity. As shown in the example below, Datadog’s PlanetScale integration breaks down the number of rows written per table, so you can quickly discover trends in activity on certain tables. Additionally, this insight lets you know where changes are happening in your database.

Monitor rows written

MySQL provides high-level information about the number of rows selected from each database. Let’s say that you query a table of 100 rows as follows:SELECT * WHERE id = 100. Your database will read through 100 rows, select the last one, and return it. It will then increment the rows selected metric by one.

While MySQL gives you this dimensionality per database, the Datadog integration provides a further level of granularity by allowing you to monitor the cumulative number of rows selected per table. As shown in the Cumulative Rows Selected Breakdown graph below, this itemization gives you a sense of the tables from which rows are most commonly selected so you can identify unexpected usage patterns and address any potential issues that might affect your PlanetScale bill.

Monitor rows selected

Monitor PlanetScale with the rest of your stack

The PlanetScale integration is now available in Datadog, giving you increased visibility into your database activity and usage. This additional context will help you get richer context around your bill and understand how to best serve your users’ needs as you scale. Check out our documentation to get started. Or, if you’re new to Datadog, sign up for a 14-day free trial.