Skip to content

Apollo

Collect Apollo related metrics information.

Installation Configuration

  • Apollo >= 1.5.0

Apollo Metrics

The default metrics port exposed by Apollo is 8070. You can view the metrics-related information via a browser: http://clientIP:8070/prometheus.

DataKit Collector Configuration

Since Apollo can directly expose a metrics URL, it can be collected directly using the prom collector.

Adjust the content as follows:

  urls = ["http://clientIP:8070/prometheus"]

  source = "apollo"

  [inputs.prom.tags]
    component="apollo"
  interval = "10s"

Other configurations can be adjusted as needed

, parameter adjustment explanation:

  • urls: The prometheus metrics address, fill in the metrics URL exposed by the corresponding component here.
  • source: Collector alias, recommended for differentiation.
  • interval: Collection interval.

Restart DataKit

Restart DataKit

Metrics

Tags

Tags Description
component Component name apollo

Metric Set jvm

Metrics Description
threads_states_threads Thread states
memory_used_bytes Memory usage

Metric Set jdbc

Metrics Description
connections_idle Idle connections
connections_active Active connections
connections_max Maximum active connections
connections_min Minimum active connections

Metric Set process

Metrics Description
uptime_seconds JVM uptime in seconds

Metric Set system

Metrics Description
cpu_usage CPU usage
cpu_count Number of available CPUs

Metric Set http

Metrics Description
server_requests_seconds_count Number of requests per second for the service
cpu_count Number of available CPUs

Feedback

Is this page helpful? ×