Skip to main content

Parameters and configuration

Parámeters

--conf Path to the configuration file

Configuration file (--conf)

[CONF]
agents_group = < Group ID for agents >
interval = < Agent creation interval >
prefix = < Prefix for created agents >
agent_name = < Main agent name. Default: Prometheus >
url = < Prometheus instance URL. For example: http://172.0.1.3:9090>
username      = < Username for the instance. Only necessary if basic authentication is configured >
password      = < Password for the instance. Only necessary if basic authentication is configured >
transfer_mode = < Transfer mode for agents. Options: tentacle and local >
tentacle_ip   = < IP address of tentacle >
tentacle_port = < Port of tentacle >
tentacle_opts = < Extra tentacle options >
temporal      = < Temporary file path >

[QUERIES]

< Metric name > = < Custom query >

[THRESHOLDS]

< Metric name > = < Desired thresholds in the module, separated by “|” >

[AGENTS]

< Metric name > = < Name of the new agent. All metrics that do not specify an agent will be included in the main agent >

Example

[CONF]
agents_group  = 17
interval      = 300
prefix        = "Kube-"
agent_name    = Prometheus
username      = admin
password      = admin123
tentacle_ip   = 172.42.42.101
tentacle_port = 41121

[QUERIES]
node_cpu_avg = avg_over_time(node_cpu_seconds_total[15m])
up_status = up
cpu_idle_avg = node_cpu_seconds_total{mode="idle",cpu="0"}
http_requests_sum = http_requests_total
disk_free_last = node_filesystem_avail_bytes{mountpoint="/"}
memory_used_avg = node_memory_MemAvailable_bytes
node_cpu_seconds = node_cpu_seconds_total{mode="idle",cpu="0"}[15m]

[THRESHOLDS]
cpu_idle_avg = min_critical 75|min_warning 60

[AGENTS]
node_cpu_seconds = Prometheus cpu