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

推荐订阅源

雷峰网
雷峰网
爱范儿
爱范儿
宝玉的分享
宝玉的分享
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
阮一峰的网络日志
阮一峰的网络日志
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 叶小钗
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
博客园 - 司徒正美
博客园 - 【当耐特】
IT之家
IT之家

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 OpenShift performance metrics
Quentin Francois · 2014-04-15 · via Datadog | The Monitor blog
Quentin Francois

Quentin Francois

Congratulations. You have successfully deployed your application on OpenShift. Now you want to monitor it like the rest of your infrastructure, without turning it into a weeklong project.

Once you add the Datadog cartridge to all of your gears, your OpenShift metrics will automatically show up in Datadog, where you can easily set up graphs and alerts to fit your needs. Note that this cartridge is designed to monitor OpenShift v2 gears, not v3 containers; however, you can instrument your OpenShift v3 apps to send custom metrics with the standalone DogStatsD image if desired.

Before we show how to set up the cartridge on your gears, let’s take a closer look at how Datadog can help you monitor OpenShift v2 performance.

Monitor OpenShift gears (and more) in one place

Datadog collects metrics from OpenShift gears and any other servers running on-premise or on other cloud environments. These can all be seen on the same page and then filtered, based on metrics or tags related to these servers.

Here’s a clip from an infrastructure page, filtered to focus on two OpenShift gears running alongside 260 other servers:

Openshift performance

Get alerted when your gears misbehave

Immediately after the Datadog Agent is installed on an OpenShift gear, all system metrics will begin to flow into Datadog and become available for graphing and alerting.

You can set up alerts on any metric coming from your gears. If you have enabled Datadog integrations in the Agents running on your gears, you can alert on these metrics as well.

Here’s a simple example of an alert that will trigger when CPU usage goes above 10% for a specific gear:

Openshift performance

In addition to generating events in your stream, alerts can be sent through email, HipChat, PagerDuty, and other endpoints defined through our WebHooks integration.

Here is what happens when the alert in the example above triggers:

Monitor Openshift performance

Interested in learning more about alerting? We have a guide to alerting.

See more: Enable integrations

Datadog will not only collect system metrics from your gears, but also the metrics and events from all of the systems in your environment. Here is an example of a MySQL dashboard after adding the MySQL cartridge to an OpenShift application:

Monitor OpenShift

It’s a simple matter of editing a few YAML files in the Agent configuration directory: $OPENSHIFT_DATADOG_DIR/dd-agent/agent/conf.d/.

Correlate OpenShift performance with the rest of your infrastructure

You can also correlate your collected OpenShift performance metrics with events from other systems, to determine whether another system or piece of infrastructure may have impacted OpenShift gears.

For example, here are some graphs from the integration with overlaid events. An event announcing the beginning of the load test is highlighted in purple and overlaid on the graphs:

Monitor Openshift performance

Monitoring that scales with your app

If you’re running a scalable app, you probably don’t care so much about individual gears. With Datadog, your monitoring will automatically scale with the application because:

  1. The Datadog cartridge is automatically deployed on all your gears

  2. Graphs and dashboards support an arbitrary number of gears

  3. Alerts monitor aggregate performance when you don’t care about specific gears.

For more information about advanced features, please consult our documentation.

Step-by-step installation

The Datadog cartridge lets you install the Datadog Agent on your gears and collect metrics from your apps. This cartridge supports both scalable and non-scalable apps.

What you need

  • An OpenShift v2 app

  • The OpenShift RHC client tool

  • A Datadog account - sign up here, it’s free

How to install

  1. Get your Datadog API key here and define the DATADOG_API_KEY environment variable in your OpenShift app:rhc set-env DATADOG_API_KEY=your_api_key -a myapp

  2. Add the cartridge to your gear:rhc cartridge-add http://cartreflect-claytondev.rhcloud.com/github/datadog/datadog-openshift -a myapp

  3. ssh to your gear to work with the Agent: ssh XXXXXXXXX@myapp.rhcloud.com. If you have trouble connecting to your gear, read this guide. You can use several commands to interact with the Agent:

$OPENSHIFT_DATADOG_DIR/bin/control start|stop|restart|status|info. Extra configuration files are located at $OPENSHIFT_DATADOG_DIR/dd-agent/agent/conf.d/.

At this point, the Agent should be running on the gear and appear on the Infrastructure Overview:

Monitor Openshift performance

You can also configure integrations to monitor other important parts of your stack, such as data stores, caches, web servers, and more. Here is the list of the available integrations.

If you’d like to get more visibility into your OpenShift v2 environment, sign up for a 14-day free trial of Datadog, and then install the Datadog Agent on your OpenShift gears. The Agent is completely open source, so you can read through every line of it, before installing it on your OpenShift gears or other servers.