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

推荐订阅源

L
LINUX DO - 最新话题
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
T
Tenable Blog
T
Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
Security Latest
Security Latest
P
Privacy & Cybersecurity Law Blog
Google Online Security Blog
Google Online Security Blog
SecWiki News
SecWiki News
P
Palo Alto Networks Blog
TaoSecurity Blog
TaoSecurity Blog
Webroot Blog
Webroot Blog
Spread Privacy
Spread Privacy
O
OpenAI News
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed
C
Check Point Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
人人都是产品经理
人人都是产品经理
S
Security @ Cisco Blogs
Scott Helme
Scott Helme
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
月光博客
月光博客
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
V
V2EX
T
Troy Hunt's Blog
W
WeLiveSecurity
GbyAI
GbyAI
N
News | PayPal Newsroom
Y
Y Combinator Blog
C
Cisco Blogs
H
Help Net Security
The GitHub Blog
The GitHub Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 【当耐特】
Jina AI
Jina AI
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
小众软件
小众软件
N
News and Events Feed by Topic

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 Aruba Central in Datadog How we centralize and remediate risks with Datadog Case Management Accelerate incident response with Datadog and ServiceNow Monitor your application and network load balancer logs Understanding Karpenter architecture for Kubernetes autoscaling Tools for collecting metrics and logs from Karpenter Monitor Karpenter with Datadog What your product data is actually saying Key metrics for monitoring Karpenter Securing Datadog’s platform in the AI age: The role of observability data Four ways engineering teams use the Datadog MCP Server to power AI agents Approaching your observability migration with the right mindset Meet the new Bits AI SRE: Deeper reasoning, twice as fast Key learnings from the 2026 State of DevSecOps study Use plain English to query your multi-cloud infrastructure in Resource Catalog Simplifying troubleshooting across the user journey with Datadog Synthetic Monitoring Protect your OCI resources with Datadog Cloud Security This Month in Datadog - February 2026 Amazon EC2 security: How misconfigured and public AMIs expand your cloud attack surface Enable end-to-end visibility into your Java apps with a single command Measure and improve mobile app startup performance with Datadog RUM Evaluating our AI Guard application to improve quality and control cost Identify untested code across every level of your codebase Make use of guardrail metrics and stop babysitting your releases Monitor Versa Networks SD-WAN performance in Datadog Improve performance and reliability with APM Recommendations Remediate transitive vulnerabilities faster with Datadog Software Composition Analysis Generate audit-ready vulnerability and compliance reports with Datadog Sheets Monitor Fortinet FortiManager performance in Datadog Improve test coverage across codebases with Datadog Code Coverage Move fast, don’t break things: Consistent testing standards at scale Enrich logs with ServiceNow CMDB context before routing to any SIEM or logging tool Monitor Lustre with Datadog Make faster, better product decisions with Datadog Product Analytics Surface and remediate runtime posture issues with Workload Protection Findings Protect agentic AI applications with Datadog AI Guard How to optimize JavaScript code with CSS Trace Google Pub/Sub workloads in Cloud Run with Datadog Detect human names in logs with ML in Sensitive Data Scanner How we cut our NLQ agent debugging time from hours to minutes with LLM Observability Debug PostgreSQL query latency faster with EXPLAIN ANALYZE in Datadog Database Monitoring Datadog acquires Propolis Unify and correlate frontend and backend data with retention filters Scale compliance across global frameworks with Datadog Cloud Security Monitor Arista VeloCloud SD-WAN performance with Datadog Building reliable dashboard agents with Datadog LLM Observability Simplify log collection and aggregation for MSSPs with Datadog Observability Pipelines Mitigation for Node.js denial-of-service vulnerability affecting Datadog APM Automate flaky test fixes with the Bits AI Dev Agent and Test Optimization How we built an AI SRE agent that investigates like a team of engineers Datadog integrations 2025 recap: Observability for AI, security, and hybrid cloud Design effective executive dashboards with Datadog Implement dbt data quality checks with dbt-expectations Bring faster visibility into AWS Lambda functions with remote instrumentation Troubleshoot faster with the GitLab Source Code integration in Datadog How Cambia Health Solutions saved $30,000 monthly with Cloud Cost Management and the Datadog Resource Catalog Normalize any logs for Cloud SIEM with Datadog's OCSF processor Optimizing Datadog at scale: Cost-efficient observability at Zendesk Detect, diagnose, and resolve network issues easily with CNM Network Health Connect engineering errors to user impact in early-stage products Cilium configuration for Kubernetes operations at scale Designing feedback loops for progressive delivery Ship features faster and safer with Datadog Feature Flags Choosing the right OpenTelemetry Collector distribution Route your monitor alerts with Datadog monitor notification rules Automate Cloud SIEM investigations with Bits AI Security Analyst Cloud threat detection: How to identify risky activity across control and data planes Collecting Kafka performance metrics Monitoring Kafka with Datadog Monitoring Kafka performance metrics
Collecting metrics and notifications from OpenStack Nova
2015-12-14 · via Datadog | The Monitor blog

This post is Part 2 of a 3-part series on monitoring OpenStack’s computation module, Nova. Part 1 explores the key OpenStack metrics available in Nova, Part 3 shows you how to monitor OpenStack with Datadog, and Part 4 details how Lithium monitors OpenStack.

Digging into OpenStack

OpenStack Nova offers a variety of sources from which you can collect operational data for monitoring. To get the complete picture of your OpenStack deployment, you will need to combine data collected from various channels.

In this post, we will show you how to get information from each of the following categories:

Collecting OpenStack metrics

Metrics collection is done at the source, usually by a monitoring agent running on the node in question. The agent collects chronologically ordered data points in a timeseries. Collection of timeseries metrics over extended periods gives you the historical context needed to identify what changed, how it changed, and potential causes of the change. Historical baselines are crucial: It is hard to know if something is broken if you don’t know what a healthy system looks like.

Although OpenStack now ships with its own metering module (Ceilometer), it was not built for monitoring. Ceilometer was created with the intent of capturing and storing critical billing messages. While some Ceilometer data may be a useful supplement to your collected metrics, simply querying Ceilometer is not enough to get useful, actionable information about your OpenStack deployment.

Nova offers three different means by which you can collect metrics. You can use:

  • API for Nova server metrics and tenant metrics

  • MySQL for some Nova server metrics, tenant metrics

  • CLI for hypervisor, server, and tenant metrics

Arguably the most efficient method to use is the CLI (command line interface)—it is a one-stop solution to getting all the metrics mentioned in the first part of this series.

Collecting Nova metrics from the API or MySQL

Many of Nova’s metrics can be extracted using either the Nova API or an SQL query. For example, to find the total number of VCPUs for a given tenant:

  • you could query the API using GET on the /v2/<tenant-id>/os-hypervisors/statistics endpoint OR

  • run the following SQL query in the nova database: select ifnull(sum(vcpus), 0) from compute_nodes where deleted=0

The main advantages of querying SQL versus the API are faster execution times and lower overhead. However, not all metrics are available via SQL, and future changes to the SQL schema could break queries, whereas API calls should be more resilient to changes.

Some metrics, like the number of running instances per Compute node, are only available via API endpoint. Thankfully, the Nova API is well-documented with more than 100 endpoints available—everything from SSH keys to virtual machine image metadata is only a request away. In addition to informational endpoints, the API can also be used to manage your OpenStack deployment. You can add hosts, update quotas, and more—all over HTTP.

Before you can use the API, you must acquire an authentication token. You can use curl or a similar client to get one like so (change your_password to your admin user password and keystone to your Horizon host):

curl -i \

-H "Content-Type: application/json" \

-d '

{ "auth": {

"identity": {

"methods": ["password"],

"password": {

"user": {

"name": "admin",

"domain": { "id": "default" },

"password": "your_password"

}

}

}

}

}' \

http://keystone:5000/v3/auth/tokens ; echo

The above command should return a token in the response header:

HTTP/1.1 201 Created

Date: Tue, 08 Dec 2015 19:45:36 GMT

Server: Apache/2.4.7 (Ubuntu)

X-Subject-Token: 3939c299ba0743eb94b6f4ff6ff97f6d

Vary: X-Auth-Token

x-openstack-request-id: req-6bf29782-f0a7-4970-b819-5a1c36640d4c

Content-Length: 297

Content-Type: application/json

Note the X-Subject-Token field in the output above: this is the authentication token.

When it comes to retrieving Nova server metrics, you must use the API. The API endpoint for Nova server metrics is: /v2.1/<tenant-id>/servers/<server-id>/diagnostics. Using curl and the authentication token acquired above, the request would look something like:

curl -H "X-Subject-Token: 3939c299ba0743eb94b6f4ff6ff97f6d" http://controller:8774/v2.1/<tenant-id>/servers/<server-id>/diagnostics

which produces output like below:

[...]

{

"cpu0_time": 17300000000,

"memory": 524288,

"vda_errors": -1,

"vda_read": 262144,

"vda_read_req": 112,

"vda_write": 5778432,

"vda_write_req": 488,

"vnet1_rx": 2070139,

"vnet1_rx_drop": 0,

"vnet1_rx_errors": 0,

"vnet1_rx_packets": 26701,

"vnet1_tx": 140208,

"vnet1_tx_drop": 0,

"vnet1_tx_errors": 0,

"vnet1_tx_packets": 662

}

Collecting Nova metrics using Nova’s CLI

If you don’t want to get your hands dirty in API calls or SQL, or are worried about compatibility with future versions, OpenStack provides a command line client for Nova, aptly dubbed nova. There are a large number of available commands, ranging from metric-gathering methods to administrative tools.

The information returned is tenant-dependent, so specify your tenant name, either as a command line argument (--os-tenant-name <your-tenant-name>) or as an environment variable (export OS_TENANT_NAME=<your-tenant-name>). If the command line complains about a missing username or authentication URL, you can also include them either as additional command line arguments or environment variables, following the pattern above.

All but one of the hypervisor metrics from part 1 of this series can be retrieved with a single command (in this example, the tenant name is testing):

root@compute-0:~# nova --os-tenant-name testing hypervisor-stats

+----------------------+-------+

| Property | Value |

+----------------------+-------+

| count | 2 |

| current_workload | 1 |

| disk_available_least | 341 |

| free_disk_gb | 342 |

| free_ram_mb | 2914 |

| local_gb | 342 |

| local_gb_used | 0 |

| memory_mb | 4002 |

| memory_mb_used | 1088 |

| running_vms | 1 |

| vcpus | 2 |

| vcpus_used | 1 |

+----------------------+-------+

The only hypervisor metric not covered by the previous command is hypervisor_load, which you can view by running uptime on your compute node.

Getting tenant metrics is just as easy and can be had with the following command:

nova quota-show --tenant <tenant-id>

+-----------------------------+-------+

| Quota | Limit |

+-----------------------------+-------+

| instances | 10 |

| cores | 20 |

| ram | 51200 |

| floating_ips | 10 |

| fixed_ips | -1 |

| metadata_items | 128 |

| injected_files | 5 |

| injected_file_content_bytes | 10240 |

| injected_file_path_bytes | 255 |

| key_pairs | 100 |

| security_groups | 10 |

| security_group_rules | 20 |

| server_groups | 10 |

| server_group_members | 10 |

+-----------------------------+-------+

Note that the command nova quota-show requires you pass the tenant id and not the tenant name

As you can see from the examples above, the Nova CLI is a very powerful tool to add to your monitoring arsenal. With just a handful of commands, you can collect all of the metrics mentioned in part 1 of this series. To make sure you get the most out of this dynamic tool, check out the documentation for a list of all available commands with explanations.

Collecting metrics from RabbitMQ

RabbitMQ provides a convenient command line client rabbitmqctl for accessing its metrics. As described in part 1 of this series, there are four RabbitMQ metrics that are of particular interest for OpenStack monitoring:

  • count: number of active queues

  • memory: size of queues in bytes

  • consumer_utilisation: percentage of time consumers can receive new messages from queue

  • consumers: number of consumers by queue

count

To get a count of the current number of queues, you can run a command such as rabbitmqctl list_queue name | wc -l which pipes the output of rabbitmqctl into the UNIX word count program—the optional -l flag forces wc to return only the line count. Because rabbitmqctl’s output includes two extraneous text lines, to get your total number of active queues, subtract two from the number returned by the previous command.

memory

Extracting the size of queues in memory requires a similar command. Running rabbitmqctl list_queues name memory | grep compute will show you the memory size of all Nova-related queues (in bytes), like in the output below:

[...]

compute 9096

compute.node0 9096

compute_fanout_ec3d52fdbe194d89954a3935a8090157 21880

consumer_utilisation

Are you noticing a pattern with these commands? To get the consumer utilization rates for all queues, run rabbitmqctl list_queues name consumer_utilisation, which produces output resembling the following (recall that a utilization rate of 1.0, or 100 percent, means that the queue never has to wait for its consumers):

Listing queues ...

aliveness-test

cert 1.0

cert.devstack 1.0

cert_fanout_c0a7360141564001b0656bf4cd947dab 1.0

cinder-scheduler 1.0

cinder-scheduler.devstack 1.0

[...]

consumers

Last but not least, to get a count of the active consumers for a given queue, run: rabbitmqctl list_queues name consumers | grep compute.

You should see something like this:

[...]

compute 1

compute.node0 1

compute_fanout_ec3d52fdbe194d89954a3935a8090157 1

Remember, few queues should have zero consumers.

Collecting Notifications

Notifications are emitted on events such as instance creation, instance deletion, and resizing operations. Built around an AMQP pipeline (typically RabbitMQ), Nova is configured to emit notifications on about 80 events. A number of tools have emerged that collect OpenStack events, but OpenStack’s own StackTach leads the pack in terms of feature-completeness and documentation. StackTach is especially useful because it needs no updates to handle new events, meaning it can continue to track events in the face of module upgrades.

If you’re just interested in a quick-and-dirty notification listener you can build around, check out this gist. Listening in on events requires the kombu Python package. This script will create a virtual environment and run the event listener. The OpenStack documentation has additional resources on crafting your own notification listener.

The truncated snippet below is an example of notification payloads received after initiating termination of an instance:

================================================================================

{

[...]

'event_type': 'compute.instance.delete.start',

'message_id': '45731b78-ceba-48a4-b80c-3ef971dd632d',

'payload': {

'image_meta': {

'progress': u'',

'ramdisk_id': 'd768f34d-bb21-4afa-97ed-8d7143a43751',

'reservation_id': 'r-gz5vu80w',

'root_gb': 1,

'state': 'active',

'state_description': 'deleting',

'tenant_id': '3fb0de5c53434c54829b7150129dec61',

'terminated_at': u'',

'user_id': 'adf56761cda54d4c99de59dc50fd6c06',

'vcpus': 1},

'priority': 'INFO',

'publisher_id': 'compute.devstack',

'timestamp': '2015-11-24 18:22:51.665797'}

================================================================================

{

[...]

'event_type': 'compute.instance.delete.end',

'message_id': '207d6503-2e28-4ec4-97e7-1f3a2a67f6ba',

'payload': {

'image_meta': {

'progress': u'',

'ramdisk_id': 'd768f34d-bb21-4afa-97ed-8d7143a43751',

'reservation_id': 'r-gz5vu80w',

'root_gb': 1,

'state': 'deleted',

'state_description': u'',

'tenant_id': '3fb0de5c53434c54829b7150129dec61',

'terminated_at': '2015-11-24T18:22:53.479747',

'user_id': 'adf56761cda54d4c99de59dc50fd6c06',

'vcpus': 1},

'priority': 'INFO',

'publisher_id': 'compute.devstack',

'timestamp': '2015-11-24 18:22:53.848974'}

By comparing the timestamps from both events, you can see it took approximately 2.2 seconds to destroy the instance.

Note that in the snippet above there are two notifications emitted: one when initiating instance termination and one that signals the successful completion of a termination operation. This is a common pattern for events in OpenStack: emit one notification when the operation has begun, and another upon completion.

When combined with collected metrics, notifications give valuable perspective and insight into the potential causes for changes in system behavior. For example, you can measure hypervisor task execution time with events, and correlate that information with the API response time. (For the curious: in practice excessive load on the hypervisor does not appear to affect API response time much.)

Service and API checks

Service checks and API checks are used to determine if a service is responsive. API checks generally GET or POST to a specific API endpoint and verify the response.

There are a number of tests you can perform to check the health of the Nova API. However, all tests generally boil down to one of two categories: simple or intrusive.

A simple API check reads (usually static) data from an endpoint and verifies that the information received is as expected. A simple API check would be polling the quota information for a project with a GET request to /v2.1/<tenant-id>/limits.

Intrusive checks modify the state of the receiving endpoint. A typical intrusive check might start by setting a value and optionally following with a request to read or verify the newly created value. Some kind of cleanup would then follow to remove the added values.

An intrusive check for the Nova API would be something like creating and deleting a key pair, with the following set of API calls (checking the status codes returned):

  • POST /v2.1/<tenant-id>/os-keypairs '{"keypair": {"name": "test"}}'

  • DELETE /v2.1/<tenant-id>/os-keypairs/test

Conclusion

In this article we’ve discussed a number of ways to check the health of your Compute cluster.

With so much data available from disparate sources, getting the information you want all in one place can be a challenge. Luckily, Datadog can help take the pain out of the process. At Datadog, we have built an integration with Nova so you can begin collecting and monitoring its metrics with a minimum of setup.

Follow along to part 3 to learn how Datadog can help you monitor Nova.