Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Metrics

Bindplane can be configured to expose metrics using OpenTelemetry Protocol or Prometheus. See Monitoring for configuration details.

Key Performance Indicators

Metrics denoted with "KPI" are key performance indicators. Bindplane administrators should pay close attention to KPIs to ensure Bindplane is operating normally.

Event Bus

The Bindplane Event Bus is responsible for publishing and consuming messages between Bindplane components. When operating Bindplane in High Availability, the Event Bus is responsible for sharing messages between Bindplane servers. Event Bus metrics can be used to gain visibility into the health of the Event Bus. A misbehaving Event Bus will cause issues with configuration rollouts, Live Preview, and Recent Telemetry Snapshots.

NATS Client

The NATS client is responsible for connecting to the NATS server and sending and receiving messages.

nats.clientProducer (KPI)

Number of times the NATS client producer handler was called. It is important to watch for the error attribute. Consistent producer errors indicate that the event bus is not functioning normally.

  • Type: Counter

  • Attributes

    • error: The error returned by the producer handler. One of "none", "max_payload", "unknown".

    • client_name: NATS client name.

    • cluster_name: NATS cluster name.

    • subject: NATS subject name.

Example:

nats.clientConsumer (KPI)

Number of times the NATS client consumer handler was called. It is important to watch for the error attribute. Consistent consumer errors indicate that the event bus is not functioning normally.

  • Type: Counter

  • Attributes

    • error: The error returned by the consumer handler. One of "none", "max_payload", "unknown".

    • client_name: NATS client name.

    • cluster_name: NATS cluster name.

    • subject: NATS subject name.

Example:

nats.slowConsumer (KPI)

Number of slow messages processed by the NATS client. See Slow Consumers for more information. When the slow consumer count is greater than 0, event bus messages are being dropped.

  • Type: Counter

  • Attributes

    • client_name: NATS client name.

    • subject: NATS subject name.

Example:

nats.clientProducerSize

Size of the payload sent by the NATS client.

  • Type: Histogram

  • Attributes

    • client_name

    • cluster_name

    • error: The error returned by the producer handler. One of "none", "max_payload", "unknown".

      • This error will match the error on nats.clientProducer.

    • subject: NATS subject name

  • Buckets:

    • 0

    • 5

    • 10

    • 25

    • 50

    • 76

    • 100

    • 250

    • 500

    • 750

    • 1000

    • 2500

    • 5000

    • 7500

    • 10000

Example:

NATS Server

The NATS server is responsible for receiving and distributing messages to NATS clients.

nats.eventbus.up

Whether or not the NATS server is running. The server being up does not indicate whether or not it is connected to other NATS servers. This metrics is useful for determining if Bindplane instance is operating as a NATS server.

A 1 indicates the NATS server is running. A 0 indicates the NATS server is not running.

  • Type: Gauge

nats.server.active_peers_count (KPI)

Number of active server peers connected to the NATS server. When operating Bindplane in High Availability, all Bindplane instances should report the same number of active peers. e.g. A three node deployment should report 2 active peers.

If active peers is not consistent between Bindplane servers, a configuration or network issue is the likely culprit.

  • Type: Gauge

Example:

nats.eventBusHealthRequestsSuccess

Number of successful health requests made to /status/v1/health or /status/v1/health/eventbus.

  • Type: Counter

nats.eventBusHealthRequestsFailed (KPI)

Number of failed health requests made to /status/v1/health or /status/v1/health/eventbus.

  • Type: Counter

PubSub

pubsub.messages

Number of PubSub messages sent and received.

  • Type: Counter

  • Attributes

    • direction: One of received, sent.

Example:

pubsub.io

Amount of PubSub data sent and received.

  • Type: Counter

  • Attributes

    • direction: One of received, sent.

Example:

pubsub.errors (KPI)

Number of PubSub errors. PubSub errors indicates an issue with publishing or consuming messages from Google PubSub.

  • Type: Counter

Example:

OpAMP

agent.wait (KPI)

Time spent waiting due to maxConcurrency configuration option.

This option prevent too many collectors from re-connecting at the same time. During a Bindplane server restart, it is expected that agent.waitwill increase temporarily as collector reconnect. If you experience significant agent.wait time, Bindplane is likely having an issue with collector connections.

High agent.wait times can result in collectors appearing "disconnected" and degraded overall performance.

  • Type: Histogram

  • Buckets:

    • 0

    • 5

    • 10

    • 25

    • 50

    • 76

    • 100

    • 250

    • 500

    • 750

    • 1000

    • 2500

    • 5000

    • 7500

    • 10000

Example:

agent.connecting (KPI)

Number of times collectors have attempted to connect. The result attribute is critical to understanding if collectors are connecting properly.

  • Type: Counter

  • Attributes

    • result

      • conflict: The collector connection was rejected because a collector with the same agent_id is already connected.

      • connected: The collector connected successfully.

      • disconnected: The collector disconnected.

      • error: An error occurred during collector connection.

      • limited: The collector connection was rejected because the collector's account has reached the maximum allowed number of collectors.

      • unauthorized: The collector connection was rejected because an account matching the collector's secret-key was not found.

Example:

agent.configure

Number of times collectors have been configured (push).

  • Type: Counter

  • Attributes

    • result

      • configuring: Successfully set collector status to configuring during collector configuration.

      • disconnected: Failed to push update to collector because it is disconnected.

      • error An error occurred during collector configuration.

      • readonly: Collector does not support remote configuration.

Example:

agent.verify

Number of times collectors have been verified (pull).

  • Type: Counter

  • Attributes

    • result:

      • configuring: Collector status was changed to configuring because it was not running the correct configuration.

      • error An error occurred during collector configuration verification.

      • missing

      • readonly: Collector does not support remote configuration.

      • validated: Collector update skipped because collector already has the correct configuration or does not have a configuration assigned.

      • validated-hash: Collector configuration hash matches the hash previously pushed to the collector.

      • waiting: Collector configuration cannot be validated because the collector is applying the configuration.

Example:

agent.upgrade

Number of times collectors have been upgraded.

  • Type: Counter

  • Attributes

    • error: An error occurred while upgrading a collector.

    • upgrading: An upgrade request occurred.

Example:

agent.report

Number of collector snapshot requests.

  • Type: Counter

  • Attributes

    • result:

      • disconnected: Snapshot request failed because the collector is disconnected.

      • error: An error occurred while requesting a snapshot from a collector.

      • sent: Snapshot request was successfully sent to the collector.

Example:

agent_messages

Number of collector messages received.

  • Type: Counter

  • Attributes

    • components: A list of collector components.

Example:

agent.heartbeat

Number of collector heartbeats received.

  • Type: Counter

  • Attributes

Example:

connected_agents (KPI)

Number of connected collectors. If connected_agents is less than the total number of collectors, it is possible some collectors are experiencing connectivity issues. This metric should be tracked with the agent.connectingmetric.

  • Type: Gauge

custom_messages.processed

Number of custom messages that have been processed.

  • Type: Counter

  • Attributes

    • message_capability: Message capability.

    • message_type: Message type.

Example:

custom_messages.process_time

Time spent processing custom messages.

  • Type: Histogram

  • Attributes

    • message_capability: Message capability.

    • message_type: Message type.

  • Buckets:

    • 0

    • 5

    • 10

    • 25

    • 50

    • 76

    • 100

    • 250

    • 500

    • 750

    • 1000

    • 2500

    • 5000

    • 7500

    • 10000

Example:

throughput_metrics.processed

Total amount of throughput metric datapoints that have been processed and batched.

  • Type: Counter

  • Attributes

    • message_capability: Message capability.

    • message_type: Message type.

Example:

measurements.process_time

Amount of time spent processing measurements.

  • Type: Histogram

  • Attributes

  • Buckets:

    • 0

    • 5

    • 10

    • 25

    • 50

    • 76

    • 100

    • 250

    • 500

    • 750

    • 1000

    • 2500

    • 5000

    • 7500

    • 10000

throughput_metrics.processed

Total amount of throughput metric datapoints that have been processed and batched.

  • Type: Counter

Example:

Web Server

requests (KPI)

Number of HTTP requests. The status attribute will include the HTTP status code. It is important to monitor for 4xx and 5xx status codes. An excessive number of 4xx status codes could indicate collector authentication issues. Any number of 5xx status codes is unexpected, and could indicate a configuration issue or bug within Bindplane.

  • Type: Counter

  • Attributes

    • method: Request method.

    • status: Request status.

    • url: Request URL path.

Example:

request_duration

Time taken to process the request in seconds.

  • Type: Histogram

  • Attributes

    • method: Request method.

    • status: Request status.

    • url: Request URL path.

  • Unit: Seconds

  • Buckets:

    • 0.1

    • 0.5

    • 1

    • 2

    • 5

    • 10

Example:

request_size

Size of the request received.

  • Type: Histogram

  • Attributes

    • method: Request method.

    • status: Request status.

    • url: Request URL path.

  • Unit: Bytes

  • Buckets:

    • 0

    • 5

    • 10

    • 25

    • 50

    • 76

    • 100

    • 250

    • 500

    • 750

    • 1000

    • 2500

    • 5000

    • 7500

    • 10000

Example:

Store

eventbus.latency

Time between sending an event to the event bus and the handler receiving it.

  • Type: Histogram

  • Attributes

    • event: One of received or handled.

    • handler: The component handling the event, one of manager or graphql.

    • type: The event type is always updates. Other values may exist in the future.

  • Buckets:

    • 0

    • 5

    • 10

    • 25

    • 50

    • 76

    • 100

    • 250

    • 500

    • 750

    • 1000

    • 2500

    • 5000

    • 7500

    • 10000

Example:

store.updateRollout

Number of times the store updateRollout method was called.

  • Type: Counter

Example:

Postgres

postgres.up (KPI)

Whether Bindplane has a connection to the Postgres database. A value of 1 indicates a successful connection. A value of 0 indicates Bindplane is unable to connect to the Postgres database.

  • Type: Gauge

wait_count

Number of times a query had to wait for a connection.

  • Type: Counter

Example:

wait_time (KPI)

Total time spent waiting for connections. If wait_time is consistently above 0, it could mean Bindplane's Postgres max connections configuration option is set too low or Postgres is experiencing performance issues.

  • Type: Counter

  • Unit: milliseconds

Example:

active_connections (KPI)

Number of open active connections. If active_connections is consistently 100% of the configured max connections, Bindplane may be experiencing performance issues. Generally, Bindplane's max connections should not exceed 100 (default). Increasing max connections might mask an underlying issue and is not recommended.

  • Type: Gauge

Example:

idle_connections

Number of open idle connections.

  • Type: Gauge

Example:

Prometheus

prometheus.up (KPI)

Whether Bindplane has a connection to the Prometheus instance. A value of 1 indicates a successful connection. A value of 0 indicates Bindplane is unable to connect to the Prometheus instance.

  • Type: Gauge

remote_write.time

Time taken to upload a batch to Prometheus via remote write.

  • Type: Histogram

  • Unit: Milliseconds

  • Buckets:

    • 0

    • 100

    • 200

    • 300

    • 400

    • 500

    • 750

    • 1000

    • 1500

    • 2000

    • 3000

    • 5000

Example:

remote_write.samples.count

Number of samples pushed to the Prometheus instance.

  • Type: Counter

Example:

Cache

cache.get

Number of cache requests.

  • Type: Counter

  • Attributes

    • cache: The cache instance

    • result: hit or miss

Example:

Transform Agent

transformagent.up (KPI)

Whether Bindplane has a connection to the Transform Agent. A value of 1 indicates a successful connection. A value of 0 indicates Bindplane is unable to connect to the Transform Agent.

  • Type: Gauge

transformagent.failedRequest

Number of failed requests to the Transform Agent.

  • Type: Counter

Last updated

Was this helpful?