Guides · Infrastructure

VMware vCenter and network monitoring with OpenTelemetry

OpenTelemetry is associated with applications and traces, but the same Collector can also query vCenter, switches, routers and firewalls. This guide shows how to add virtualization and the network to your observability with the same standard, and why having them in the same place as your services changes how you diagnose problems.

By the OneGlass team · December 3, 2026 · 8 min read

Why in the same place

In most companies with their own data center, the application is watched with one tool, VMware with another and the network with a third. Each team sees its own part, and an incident that crosses all three gets settled in a meeting, comparing clocks.

The questions that matter cross layers. A service is slow: is it the code, a virtual machine starved of CPU because the ESXi host is saturated, a datastore with high latency, or a switch link with errors? You can only answer fast if all four are in the same system, on the same clock and related to each other.

OpenTelemetry works for this because the Collector doesn't only receive. It also goes out and queries. It has receivers that ask a vCenter or a switch and turn the answer into metrics in the same format as your applications'.

VMware: the vCenter receiver

The vcenter receiver connects to the vCenter API and walks the full inventory: datacenters, clusters, ESXi hosts, virtual machines, datastores and resource pools.

yaml
receivers:
  vcenter:
    endpoint: https://vcenter.example.local
    username: ${env:VCENTER_USER}
    password: ${env:VCENTER_PASSWORD}
    collection_interval: 2m
    tls:
      insecure_skip_verify: false   # leave it false and load your vCenter certificate

A read-only user is enough. What you get:

  • Cluster: total and used CPU and memory, number of hosts and virtual machines by state.
  • ESXi host: CPU, memory, disk and network usage.
  • Virtual machine: CPU, memory (including ballooning and swap), disk and network.
  • Datastore: used and available space.

Each metric arrives with attributes that say what it belongs to: vcenter.datacenter.name, vcenter.cluster.name, vcenter.host.name, vcenter.vm.name. With them you can build the whole tree, from vCenter down to the virtual machine.

What to look at first in VMware

  • VM CPU ready: time a VM was ready to run and the host didn't give it CPU. It is the clearest signal of an overloaded host, and the VM can't see it from the inside.
  • Memory ballooning and swap: the host is taking memory back from VMs because it is running short.
  • Datastore space: a full one stops every VM that lives on it.
  • Disconnected hosts or hosts in maintenance, and how much capacity the cluster has left without them.

The network: SNMP from the Collector

Switches, routers and firewalls don't run an agent, but almost all of them speak SNMP. The snmp receiver queries the values you point it to and turns them into metrics.

yaml
receivers:
  snmp:
    endpoint: udp://10.0.0.1:161
    version: v3                    # v3 encrypts and authenticates; avoid v1 and v2c if you can
    security_level: auth_priv
    user: ${env:SNMP_USER}
    auth_type: SHA
    auth_password: ${env:SNMP_AUTH_PASSWORD}
    privacy_type: AES
    privacy_password: ${env:SNMP_PRIV_PASSWORD}
    collection_interval: 60s
    resource_attributes:
      if.name:
        oid: "1.3.6.1.2.1.31.1.1.1.1"        # ifName: the name of each interface
    metrics:
      snmp.if.in.octets:
        unit: By
        sum: { aggregation: cumulative, monotonic: true, value_type: int }
        column_oids:
          - oid: "1.3.6.1.2.1.31.1.1.1.6"    # ifHCInOctets: bytes received
            resource_attributes: [if.name]
      snmp.if.out.octets:
        unit: By
        sum: { aggregation: cumulative, monotonic: true, value_type: int }
        column_oids:
          - oid: "1.3.6.1.2.1.31.1.1.1.10"   # ifHCOutOctets: bytes sent
            resource_attributes: [if.name]
      snmp.if.in.errors:
        unit: "{errors}"
        sum: { aggregation: cumulative, monotonic: true, value_type: int }
        column_oids:
          - oid: "1.3.6.1.2.1.2.2.1.14"      # ifInErrors: input errors
            resource_attributes: [if.name]

Each device is one entry in the receiver. With a few devices you write it by hand. With dozens, generate the configuration from an inventory, or use a platform that does it for you.

What to look at first in the network

  • Interface status: a link that is down, or one that flaps.
  • Errors and discards per interface: a cable, a connector or a badly negotiated speed shows up here long before it shows up in the application.
  • Usage against capacity: the counters are cumulative. Traffic per second comes from the difference between two readings.
  • Device CPU and memory, and on firewalls, the number of sessions.

More than metrics

  • Syslog: network devices report what happens to them over syslog. The Collector has a receiver that takes it in and turns it into logs, next to your applications' logs.
  • Neighbors: SNMP can also tell you which device is connected to each port (LLDP). That lets you draw the real cabling without surveying it by hand.
  • Vendor APIs: some devices, such as firewalls, expose much more over an API than they give over SNMP: high availability, routes, tunnels, licenses.

Joining the layers

Having the metrics in the same system is half of it. The other half is relating them, and that takes identifiers that match across layers:

  • From the service to the VM: the host reported by the agent inside the virtual machine has to be matchable to the VM that vCenter reports, by name or by identifier.
  • From the VM to the ESXi host and the datastore: vCenter tells you.
  • From the ESXi host to the switch: the network's neighbor table tells you.

With that full chain, the question "what goes down if this switch fails?" gets an answer that reaches all the way to services and business flows, instead of stopping at a list of ports.

Where the querying Collector runs

  • Close to what it queries. vCenter and network devices live on management networks. The Collector that queries them needs access to that network, and only needs to reach your platform outbound.
  • Only one per target. Two Collectors querying the same vCenter duplicate the data and the load on the API.
  • Credentials outside the file. Environment variables or a secrets store, never in the YAML.
  • Reasonable intervals. Two minutes for vCenter and one minute for the network are a good starting point. Querying every few seconds loads the devices without adding information.

Common mistakes

  • Using SNMP v2c on a shared network. The community string travels in plain text.
  • Using 32-bit counters on fast links. They wrap around in seconds and the computed traffic makes no sense. Use the 64-bit ones, as in the example.
  • Giving the vCenter user more permissions than needed. Read-only is enough.
  • Looking at the VM only from the inside. The operating system doesn't know the host is rationing its CPU or memory.
  • Leaving the network and virtualization in another tool. You lose exactly what you were after: seeing the cause when it isn't in the application.

With OneGlass

OneGlass is an OpenTelemetry-native observability platform, made in Argentina. You add a vCenter or a network device with a wizard, without writing YAML. VMware is shown as a tree, from vCenter to the VM, and switches, routers and firewalls with their health, their interfaces and their neighbors. Everything goes into the same topology as your services, and the Resilience view shows single points of failure and lets you simulate what loses its path if a switch or a cable goes down.