banshee/examples-collection
Examples
Small collectors to learn Keen and to start from.
Small, commented collectors, one thing each, to read and to copy; each documentation says how to read it and what to change to adapt it. Read them in this order. examples/basics: first-collector, conditions, loops, functions, calculation. examples/watches, one per kind: state, above, below, expect, increase, silence, missing, deviate, habit, custom. examples/protocols: ssh-run, snmp-get, snmp-walk, snmp-table, snmp-date, http-get-json, http-get-headers, http-get-account, http-post, tls-inspect, tls-try, ntp-time, winrm-run. examples/mechanics: selection, selection-only, variables, inherit, errors, fail, durations, counter-rate, wait, cache, text, lists. examples/api, the pieces put together: backup-jobs, oauth-token, signed-request, elasticsearch-key, consul-key.
par banshee1 installation45 collecteurs
Collecteurs
Les installations comptées sont celles des 30 derniers jours.
| Collecteur | Ce qu’il fait | Dernière version | Installations |
|---|---|---|---|
| examples/api/backup-jobs | Example: a REST API end to end, login, token in the cache, one state per backup job. | v1 · 1 version | 1 |
| examples/api/consul-key | Example: url.encode and base64.decode; the value of a key of Consul. | v1 · 1 version | 1 |
| examples/api/elasticsearch-key | Example: base64.encode for an API key header; the health of an Elasticsearch cluster. | v1 · 1 version | 1 |
| examples/api/oauth-token | Example: an OAuth2 token, url.query, Basic and base64.url_decode; the lifetime of the tokens. | v1 · 1 version | 1 |
| examples/api/signed-request | Example: a request signed by HMAC-SHA-256 with a secret key; the messages waiting in a queue. | v1 · 1 version | 1 |
| examples/basics/calculation | Example: + - * / %, number.round and the point that joins texts, on the uptime of a Linux. | v1 · 1 version | 1 |
| examples/basics/conditions | Example: if, elseif, else, comparisons and && || !, on the swap of a Linux. | v1 · 1 version | 1 |
| examples/basics/first-collector | Example: the smallest collector, one SSH command, one value, one watch. | v1 · 1 version | 1 |
| examples/basics/functions | Example: functions of the author, parameters and return, on the memory of a Linux. | v1 · 1 version | 1 |
| examples/basics/loops | Example: foreach, for, while, break and continue, on the processes of a Linux. | v1 · 1 version | 1 |
| examples/mechanics/cache | Example: the cache, set, has, get and delete; a restart told by the boot id of the kernel. | v1 · 1 version | 1 |
| examples/mechanics/counter-rate | Example: counter.rate and skip; the incoming traffic of an interface in bit/s. | v1 · 1 version | 1 |
| examples/mechanics/durations | Example: for, in passes and in time; the response time of a web page. | v1 · 1 version | 1 |
| examples/mechanics/errors | Example: errors= to decide what a failed call means; a site down said critical. | v1 · 1 version | 1 |
| examples/mechanics/fail | Example: fail and its three states, critical, misconfigured, unreachable; software RAID by SSH. | v1 · 1 version | 1 |
| examples/mechanics/inherit | Example: the option inherit of a variable, down, here or choice; the time zone of a Linux. | v1 · 1 version | 1 |
| examples/mechanics/lists | Example: arrays and the list tools, count, has, get, add; the TCP ports a Linux listens on. | v1 · 1 version | 1 |
| examples/mechanics/selection | Example: per and its default selection, all but ignore; the space used per file system. | v2 · 2 versions | 1 |
| examples/mechanics/selection-only | Example: per with only, a default selection of named elements; systemd services by SSH. | v2 · 2 versions | 1 |
| examples/mechanics/text | Example: the text tools, lines, match, lower, words, join, length, split, is_number; /etc/os-release. | v1 · 1 version | 1 |
| examples/mechanics/variables | Example: variable() in its five forms, required, optional and with a default; words in a web page. | v1 · 1 version | 1 |
| examples/mechanics/wait | Example: time.wait, two readings within one pass; the CPU usage of a Linux. | v1 · 1 version | 1 |
| examples/protocols/http-get-account | Example: http.get with user= and password=, an optional account in Basic. | v1 · 1 version | 1 |
| examples/protocols/http-get-headers | Example: http.get with headers=, and the headers of the answer; an API that answers JSON. | v1 · 1 version | 1 |
| examples/protocols/http-get-json | Example: http.get and json.read; the state a health page declares. | v1 · 1 version | 1 |
| examples/protocols/http-post | Example: http.post with a JSON body built by json.write; errors counted in a search index. | v1 · 1 version | 1 |
| examples/protocols/ntp-time | Example: ntp.time and time.now; a time server against the poller's clock. | v1 · 1 version | 1 |
| examples/protocols/snmp-date | Example: snmp.date, a DateAndTime brought back to UTC; the clock of a device. | v1 · 1 version | 1 |
| examples/protocols/snmp-get | Example: snmp.get, one OID; the time since the SNMP agent started. | v1 · 1 version | 1 |
| examples/protocols/snmp-table | Example: snmp.table, columns lined up by index; the state of each interface. | v1 · 1 version | 1 |
| examples/protocols/snmp-walk | Example: snmp.walk, a whole branch; the number of programs running on a device. | v1 · 1 version | 1 |
| examples/protocols/ssh-run | Example: ssh.run, its output, errors and exit, and arguments=; the size of a file. | v1 · 1 version | 1 |
| examples/protocols/tls-inspect | Example: tls.inspect, the certificate a port presents; the days before it expires. | v1 · 1 version | 1 |
| examples/protocols/tls-try | Example: tls.try, one version offered; does a server still accept TLS 1.0. | v1 · 1 version | 1 |
| examples/protocols/winrm-run | Example: winrm.run, a PowerShell script over WinRM; the state of a Windows service. | v1 · 1 version | 1 |
| examples/watches/above | Example: the watch above, and its trend ahead; the space used on / by SSH. | v2 · 2 versions | 1 |
| examples/watches/below | Example: the watch below; the memory a Linux has available, by SSH. | v1 · 1 version | 1 |
| examples/watches/custom | Example: the watch custom, its settings, watch.setting and watch.raise; a backup status by SSH. | v1 · 1 version | 1 |
| examples/watches/deviate | Example: the watch deviate, one element far from the others; the load of each processor by SNMP. | v1 · 1 version | 1 |
| examples/watches/expect | Example: the watch expect, a value none of the expected ones; the boot target by SSH. | v1 · 1 version | 1 |
| examples/watches/habit | Example: the watch habit, a value far from its usual level; the processes of a Linux by SSH. | v1 · 1 version | 1 |
| examples/watches/increase | Example: the watch increase on a counter over a window; out-of-memory kills by SSH. | v1 · 1 version | 1 |
| examples/watches/missing | Example: the watch missing, expected elements absent; the interfaces of a Linux by SSH. | v1 · 1 version | 1 |
| examples/watches/silence | Example: the watch silence, a value at zero too long; connections to port 443 by SSH. | v1 · 1 version | 1 |
| examples/watches/state | Example: the watch state, raised by a value in a list; a systemd service by SSH. | v1 · 1 version | 1 |