Skip to main content
Version: v3

Metrics

Dkron has the ability to send metrics to Statsd for dashboards and historical reporting or provide prometheus format metrics via the api. It sends job processing metrics, golang, and serf metrics.

Configuration

Statsd

Add this in your yaml config file to enable statsd metrics.

statsd-addr: "localhost:8125"
# Or for datadog statsd
dog-statsd-addr: "localhost:8125"

Prometheus

Add this to your yaml config file to enable serving prometheus metrics at the endpoint /metrics

enable-prometheus: true

Additionally, in your Prometheus config file (prometheus.yml), add the following to link dkron metric endpoint

scrape_configs:
... #initial configuration

- job_name: "dkron_metrics"
# metrics_path defaults to '/metrics'
static_configs:
- targets: ["localhost:6080"]

Metrics

  • dkron.agent.event_received.query_execution_done
  • dkron.agent.event_received.query_run_job
  • dkron.memberlist.gossip
  • dkron.memberlist.probeNode
  • dkron.memberlist.pushPullNode
  • dkron.memberlist.tcp.accept
  • dkron.memberlist.tcp.connect
  • dkron.memberlist.tcp.sent
  • dkron.memberlist.udp.received
  • dkron.memberlist.udp.sent
  • dkron.grpc.call_execution_done
  • dkron.grpc.call_get_job
  • dkron.grpc.execution_done
  • dkron.grpc.get_job
  • dkron.runtime.alloc_bytes
  • dkron.runtime.free_count
  • dkron.runtime.gc_pause_ns
  • dkron.runtime.heap_objects
  • dkron.runtime.malloc_count
  • dkron.runtime.num_goroutines
  • dkron.runtime.sys_bytes
  • dkron.runtime.total_gc_pause_ns
  • dkron.runtime.total_gc_runs
  • dkron.serf.coordinate.adjustment_ms
  • dkron.serf.msgs.received
  • dkron.serf.msgs.sent
  • dkron.serf.queries
  • dkron.serf.queries.execution_done
  • dkron.serf.queries.run_job
  • dkron.serf.query_acks
  • dkron.serf.query_responses
  • dkron.serf.queue.Event
  • dkron.serf.queue.Intent
  • dkron.serf.queue.Query