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

推荐订阅源

罗磊的独立博客
The GitHub Blog
The GitHub Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
小众软件
小众软件
博客园_首页
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
B
Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow 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
Emacs fans rejoice: Datadog mode is here
Drew Werner · 2014-09-23 · via Datadog | The Monitor blog
Drew Werner

Drew Werner

A few of us at Datadog are big fans of Emacs, the flagship text editor of the GNU project. Emacs is renowned for its flexibility and hosts a full-featured Lisp) implementation that allows the enthusiast to radically customize his or her work environment.

As many of our users know, Datadog has an extensive API that allows a range of client requests. Inspired by an excellent talk by Kris Jenkins, I thought it would be interesting to implement some of the Datadog API within Emacs, so I could do things like quickly browse a dash or query a metric without leaving the comfort of my favorite text editor.

The result is something I call datadog.el, a tool for displaying simple metric graphs within Emacs.

Set up your Datadog Emacs client

Installation instructions for the client can be found in our datadog.el project on GitHub.

Once you’ve installed datadog.el, you can open a Datadog browser with M-x datadog. You may wish to alias a key to the browser. To do this with the Datadog mnemonically-appropriate C-c d d, add the following to your initialization code:

(global-set-key (kbd "C-c d d") 'datadog)

You can find the browser in the datadog buffer and issue metric queries or browse a dashboard.

The first time you try to issue a request from Datadog, it will prompt you for your API and application keys. Once you’ve entered your keys, datadog.el will persist these credentials for you locally in ~/.emacs.d/dogapi-credentials.

Load a dashboard or graph

Browsing to a dashboard is simple and quick. Once you’re in the browser, press capital D to look at a list of dashboards, which you can interactively search using the Helm interface:

View Datadog graphs in Emacs

Selecting a dashboard brings up a list of tiles for that dash’s graphs:

View Datadog graphs in Emacs

When looking at a dash, you can also switch tiles by pressing capital T.

Once you’ve selected a tile, you’re able to navigate between graphs in the dash.

What you will see

Viewing timeseries data in the terminal is a somewhat different experience than using a modern graphical interface. For simplicity’s sake, we are not supporting our heatmaps, distributions, or top lists. Also, due to the low resolution and limited graphical expressivity of a text display, stacking multiple series on top each other or overlaying multiple series is impractical. Instead, what you will see looks something like this:

View Datadog graphs in Emacs

You can analyze your Datadog graphs with these Emacs commands:

  • Move the time cursor by steps with f (forward) and b (backward) or in larger jumps with capital F and B.

  • Set the time frame to one of four options: one hour (1), four hours (4), one day (d), and one week (w).

  • Refresh the graph with more recent data with the r button. Note: in order to prevent someone from inadvertently sending too many API requests, we throttle refreshes at a rate that depends on the graph timeframe.

  • Navigate between series with the n (next) and p (previous) keys or jump to a particular scope with the j key. This is because all charts are displayed as area graphs and all constituent series are displayed separately.

  • While viewing a graph, switch to a different dash or graph by using the capital D or T commands, respectively.

You can see a summary of all these commands (plus a few others) by accessing the mode specific help from inside the datadog buffer. Mode-specific help can be accessed via M-x describe-mode or by using the shortcut C-h m.

Next steps

We hope this is a tool that some of you find fun, and maybe even useful. If you’re interested in learning more or contributing to the project, you can see the source code on GitHub. Some features that might be interesting to implement include:

  • Summary of Alert Status

  • Searching and Browsing Events (and comments)

  • Adding Comments to an Event

And there are probably still more ideas that we haven’t yet thought of.

We’d love to get your contributions, whether in the form of feature suggestions, bug reports, or pull requests. Have fun, and let us know what you think.

Vim and Sublime fans, we’d love to see what you can offer for Datadog browsing—if you’re up for the challenge.

Finally, if you like this kind of stuff, join Datadog.