Docs / Without the agent

Data sources

Hosts you can't or won't put the agent on still get CPU, memory, disk IO and disk space checks. A data source either pushes metrics to central or central polls it. Its checks work exactly like an agent's: the same names (db-01:cpu, db-01:disk:var), thresholds, incidents, alerts and dashboard.

TypeGood forEdition
pushScripts, cron jobs, Telegraf, anything that can send HTTPSCommunity
prometheusHosts already scraped for node_exporterTeam
influxdbHosts already sending Telegraf metrics to InfluxDB 1, 2 or 3Team
snmpSwitches, NAS boxes, printers, appliances, Windows with the SNMP serviceTeam
sshLinux hosts where nothing may be installedTeam
netdataHosts running a Netdata agentTeam
glancesSmall boxes and home labs running a Glances serverTeam

Every type but push is polled by central and needs the Team plan to run. The Community edition accepts all of them in config, so one config works with both editions, and shows the polled ones as not running.

Settings every source has

Sources live in git under the sources: key (any config file). Settings → Data sources shows each one's status, hosts, checks, last data and last error, and how to send to a push source.

sources:
  - name: telegraf          # unique; [a-z0-9][a-z0-9._-]*
    type: push
    env: prod               # given to the source's checks
    severity: critical      # default critical
    hosts: ["db-*"]         # optional globs: other hosts are refused
    tags: { team: data }    # added to every check
    stale_after: 5m         # a metric silent this long is unknown (1m to 24h)
    forget_after: 24h       # a host silent this long is retired (1h to 2160h, longer than stale_after)
    cpu: { warn_pct: 80, crit_pct: 95 }
    memory: { warn_pct: 90 }
    io: { warn_pct: 80, window: 5m }
    disk: { warn_pct: 80, inode_warn_pct: 90 }

Thresholds start from discovery.cpu, discovery.memory, discovery.io and discovery.disk (the agent's), then the source's own. cpu, memory and io take warn_pct, crit_pct, window and pressure_warn_pct; disk takes warn_pct, crit_pct, inode_warn_pct and inode_crit_pct. The tags host and source are set for you.

Push (any script, Telegraf)

POST to central's /ingest/v1/sources/<name> with the source's token. Percentages are 0 to 100; leave out what you don't measure.

sources:
  - name: telegraf
    type: push
    env: prod
    token: ${secret:telegraf_push_token}   # at least 16 characters
curl -sS -X POST "https://uptight.example.com:8090/ingest/v1/sources/telegraf" \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"hosts":[{"host":"db-01","cpu_pct":42.5,"memory_pct":71,"io_pct":3,
       "disks":[{"mount":"/","used_pct":64,"inodes_used_pct":3}]}]}'

Or let Telegraf send it (the cpu, mem, disk and diskio inputs):

[[outputs.http]]
  url = "https://uptight.example.com:8090/ingest/v1/sources/telegraf"
  data_format = "json"
  json_timestamp_units = "1s"
  [outputs.http.headers]
    Authorization = "Bearer ${UPTIGHT_PUSH_TOKEN}"
    Content-Type = "application/json"

Limits and optional fields:

The answer is {"checks": <results taken>, "rejected": [{"host", "problems"}]}:

StatusMeans
200Something was taken.
400Nothing was taken: a malformed body, or every host refused.
401An unknown source or a wrong token (alike, so source names do not leak).
503The leader is starting. Try again.

A proxy in front of central must pass /ingest/v1/ and allow 8 MiB bodies. In a high availability pair Team, a standby forwards pushes to the leader.

Prometheus Team

sources:
  - name: prom
    type: prometheus
    env: prod
    url: https://prometheus.example.com
    headers: { Authorization: "Bearer ${secret:prometheus_token}" }
    interval: 1m
    host_label: instance        # the default; a :port is dropped

The built-in queries are instant queries on Prometheus's GET /api/v1/query. They read node_exporter: CPU busy over 5 minutes, MemAvailable, the busiest disk's IO, and space and inodes per mountpoint. Replace any of them under queries: (cpu, memory, io, disk, inodes): each must return one series per host whose value is the percentage.

InfluxDB Team

sources:
  - name: influx
    type: influxdb
    env: prod
    url: https://influx.example.com:8086
    database: telegraf          # InfluxDB 2 and 3: a database mapped to the bucket
    headers: { Authorization: "Token ${secret:influx_token}" }

It reads Telegraf's cpu, mem, disk and diskio measurements with InfluxQL, grouped by the host tag.

SNMP Team

sources:
  - name: network
    type: snmp
    env: prod
    community: ${secret:snmp_community}
    targets:
      - core-switch.example.com           # named after its address
      - { name: nas-01, address: 10.0.0.20 }
      - { name: printer, address: "10.0.0.30:1161" }

SNMPv2c over UDP 161. It reads the standard HOST-RESOURCES-MIB (processor load, fixed disks, RAM) and, on net-snmp, UCD-SNMP-MIB for accurate available memory. Disk IO is not available over SNMP. Windows drives become <host>:disk:c, as with the agent.

On a Linux host with net-snmp, allow central to read: in /etc/snmp/snmpd.conf, rocommunity <community> <central-ip>, then restart snmpd. Test from central: snmpwalk -v2c -c <community> <target> 1.3.6.1.2.1.25.2.3.1.3.

SSH Team

sources:
  - name: legacy
    type: ssh
    env: prod
    user: uptight
    private_key: ${secret:uptight_ssh_key}   # a PEM key without a passphrase
    known_hosts: /etc/uptight/known_hosts    # required: host keys are always checked
    targets: [old-db.example.com, "batch-02.example.com:2222"]

Central logs in and runs one read-only command (it reads /proc/stat, /proc/meminfo, /proc/diskstats and df), so the target needs no software and the user needs no privileges. CPU and IO are rates, so they appear from the second poll. Linux targets only.

Set up a target:

# on the target
sudo useradd -m -s /bin/sh uptight
sudo -u uptight mkdir -m 700 ~uptight/.ssh
echo "ssh-ed25519 AAAA... uptight" | sudo -u uptight tee ~uptight/.ssh/authorized_keys
# on central: record the target's host key
ssh-keyscan old-db.example.com >> /etc/uptight/known_hosts

Netdata Team

sources:
  - name: netdata
    type: netdata
    env: prod
    targets:
      - { name: web-01, address: "http://web-01.example.com:19999" }
      - { name: web-02, address: "http://netdata-parent:19999/host/web-02" }   # a child, through a parent

Reads system.cpu, system.ram and mem.available, every disk_space and disk_inodes chart and the busiest disk_util chart over the last minute. Netdata 1.x and 2.x.

Glances Team

sources:
  - name: glances
    type: glances
    env: lab
    interval: 30s
    targets: ["http://pi.local:61208"]

Run Glances in web server mode (glances -w). Uptight reads its REST API (v4, falling back to v3): CPU, memory and filesystems. Glances has no portable disk-busy figure, so there is no IO check.

Stale data and forgotten hosts

Problems? See troubleshooting data sources.