Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 777 Bytes

README.md

File metadata and controls

35 lines (28 loc) · 777 Bytes

kullect

Kapacitor UDF's to Analyze Service Costs in Kubernetes

Slides: https://docs.google.com/presentation/d/16oHN1AunL4PGUfRJOcn9DmTn2RP8kI65CMZXsEAoPNA/edit?usp=sharing

Setup

  1. Download binary from releases

  2. Add to Kapacitor Config File

[udf]
  [udf.functions]
  [udf.functions.kullect]
          prog = "path/to/kullect/binary"
          args = []
          timeout = "10s"
  1. Add the tick file included here
  • Change the values for total_cpu, hourly_cost, and total_memory
  1. Define and enable the tick file
kapacitor define kullector \
  -tick kullect.tick \
  -type stream \
  -dbrp k8s.default 
kapacitor enable kullector
  1. Validate the tick is working
kapacitor show kullector