Skip to content

Apollo

Information on Apollo-related metrics was collected.

Installation Configuration{#config}

  • Apollo >= 1.5.0

Apollo Metrics

The default Exposure Metric port for Apollo is: 8070. Metric-related information can be viewed through a browser: http://clientIP:8070/prometheus.

DataKit Collector Configuration

Because Apollo can expose metrics URL directly, it can be collected directly through prom collector.

The adjustments are as follows:

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

  source = "apollo"

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

Other configurations are adjusted as needed

, adjust parameter description:

  • Urls: prometheus Metric address, where you fill in the metric URL exposed by the corresponding component
  • Source: Collector alias, recommended to distinguish
  • Interval: collection interval

Restart DataKit

Restart DataKit

Metric

Tags

Tags Describe
component Component name apollo

Metric Set jvm

Metrics Describe
threads_states_threads thread states
memory_used_bytes memory used

Metric Set jdbc

Metrics Describe
connections_idle idle connections
connections_active active connections
connections_max max connections
connections_min min connections

Metric Set process

Metrics Describe
uptime_seconds jvm start time

Metric Set system

Metrics Describe
cpu_usage cpu usage
cpu_count cpu count

Metric Set http

Metrics Describe
server_requests_seconds_count server requests seconds count
cpu_count cpu count

Feedback

Is this page helpful? ×