Ask InfluxDB
Attach a connection and ask. Lists of what the server holds and of the alert state are answered by Verbiqo alone. Any other question is investigated: the model chooses what to read, and Verbiqo checks every read and writes every figure in the answer. Every check and the words that bring it in: InfluxDB checks.
Attach
/influx metrics
Use the name you gave the connection; type /influx and a space to pick from the saved ones. /influx off stops reading it; /sources shows what is attached. Every read is shown in the window before its result is used.
Name the bucket or database in the question (in telegraf) when the connection has more than one. Otherwise Verbiqo uses the connection’s default, the only one, or the one that holds the host you named, and says which at the top of the answer. If it still cannot tell, it asks you which.
What the server holds
Answered by Verbiqo from the server, with no model. Each answer ends with every read it made.
| You want | Ask |
|---|---|
| Buckets, databases, mappings | list buckets |
| Measurements, tags, fields | list measurements in telegraf, list tag keys in telegraf |
| Hosts and services | list hosts, list services |
| Which tag is the host, service and label | which tag is the host |
| Poll interval, retention, series counts | poll interval, retention, series count |
| Hosts that stopped reporting | which hosts stopped reporting |
| What the token can read | what can this token read |
| An overview | health, is anything wrong |
A host has stopped when its newest point is older than three poll intervals. The answer names which measurements stopped and which are still fresh, and a measurement whose interval is unknown is “not judged”.
Exact schema commands also work, answered as written, with an optional ON "telegraf". Up to 500 rows; a pattern, WHERE or a second statement is refused:
SHOW TAG KEYS FROM "interface"
SHOW FIELD KEYS FROM "interface"
SHOW TAG VALUES FROM "interface" WITH KEY = "ifName"
The structure of a bucket is kept for an hour, and an answer built on it says how old it is. Add refresh to a question to read it again.
Alert state
For buckets written by the Icinga 2 InfluxdbWriter with check state (Settings that help).
| You want | Ask |
|---|---|
| Every problem | list alerts |
| By state | list critical alerts, warning, unknown, hosts down |
| By flag | acknowledged, in downtime, soft alerts, flapping in the last hour |
| For a host or group | alerts on web-1, alerts for site=north |
Each line gives the state, since when, soft or hard, the attempt, and whether it is acknowledged or in downtime. Flapping means at least three state changes within an hour. Lists show 40 rows; add all for up to 500. A bucket without check state says so; it never says that everything is fine.
Investigate
| You want | Ask |
|---|---|
| A reading over time | show CPU temperature on web-1 over the last 24 hours |
| A peak and when it was | highest inlet temperature over the last 7 days |
| The latest value | latest fan speed on storage-2 |
| Interface problems | which interfaces have errors in the last hour, which ports are down |
| A cause | why is disk on db-1 critical |
| A change | what changed around 12:40 |
| A comparison | compare web-1 with web-2 |
Name the host, the reading and the time. A time is a window such as the last 24 hours, over 24 h or in 6 hours. Without a time, Verbiqo reads the last 7 days, the most one statement may cover. Without a host, the whole bucket is read, and the answer says so.
How to read the answer
An investigation is written in the same order every time. Verbiqo states every figure, time, ranking and state itself, from the rows it read; the model only explains.
- Answer. What was found, first. When a host in scope stopped reporting, a Reporting gap line says so here: its readings after that are missing, which is not a value of 0 and not a healthy state.
- Result. One line per series: its host and label, its value, the unit the source wrote (none is assumed), and the time. A ranking is by raw value, and a counter is shown as a rate per second. At most 30 lines are shown; a line with a problem, an uncertainty or a first place is always shown, and the rest are in Details, with the count said.
- Explanation. What the findings mean and what to check next, written by the model and cited to findings. A sentence that gives a figure, a ranking, a comparison, a health verdict or a cause the findings do not state is not shown here. It is listed in Details, and when nothing of it can be used the section says so and is left out. Where the data carries no state or threshold, the answer says whether anything is wrong, and why, was not determined.
- Limits. The scope (bucket, hosts, absolute start and end), what was not established and why, the poll interval where it matters, and that rates are per second over the covered seconds, with counter resets excluded and counted.
- What was read. A pointer to Details.
- Details. The scope id, the coverage, every series with its values, every read made (a read that was not made or not complete is marked NOT READ or not proven complete), the context reads made before the figures, and the model statements that were kept out.
| You see | It means |
|---|---|
| Coverage: COMPLETE | Every read in the scope was made and returned in full: none refused, failed or cut. |
| Coverage: PARTIAL | Something was not read or not established. The line names it: a refused or failed read, a limit reached, a cut list. |
| Not established | A fact the reads could not settle, with the reason. It is never filled in. |
| in °C: … and (54 °C if stored in tenths of °C) | A conditional conversion. The source writes no unit, the stored numbers cannot be whole degrees, and exactly one documented encoding fits the field (today the Dell iDRAC temperature probe, in tenths of a degree). The stored value stays first, and nothing is judged from the converted figure. Ask in Fahrenheit for °F. Details hold the mappings file that declares the field; after you save it with verbiqo influx mappings, the unit is verified and the condition is no longer printed (Field mappings). |
| Possible interpretation (unverified) | Where a field may follow a known MIB encoding (a temperature in tenths of a degree, for example), what a value would mean if that encoding holds. It never becomes a unit, a threshold or a verdict. |
| Not resolved | A reading you asked for that no field, measurement or tag value of the bucket can be identified as. The answer says what the bucket holds and concludes nothing, neither a problem nor that it is not collected. |
No data is “no matching readings”, never “nothing is wrong”. A reading is judged only against the warn and critical values the source wrote.
Follow-up questions
A follow-up is read against the question before it, in five parts: the bucket, the subject (hosts), the reading, the window and the operation. For each, Verbiqo carries it, drops it or asks you. What was carried or dropped is stated in the answer.
- One change: naming a host, a reading or a window changes only that. What about web-2? keeps the reading and the window.
- Only a new window: What about the last hour? after an answer about ports or the network is the question before it over that window; the progress line says how it was read.
- A subject that does not fit: a host that writes none of the reading you now ask for is dropped, and the answer says so.
- Operations: highest or lowest, latest, when did it start, the sample before, still reporting? and compare the last hour with the hour before apply to the readings of the question before.
- More: continue or more reads only what the previous answer left unread, over the same window, shown to the second.
- A new topic starts fresh and inherits no host or window. If Verbiqo cannot tell which earlier reading you mean, it asks.
From a terminal
In verbiqo chat, attach with /influx as in the app, or name the connection when you start: verbiqo chat --influx metrics "which interfaces have errors in the last hour". Investigations need the chat. The verbiqo influx commands below answer lists and alert state with no model.
verbiqo influx inventory metrics
verbiqo influx alerts metrics icinga critical
verbiqo influx ask metrics "which hosts stopped reporting"
verbiqo influx ask metrics "list measurements in telegraf" --refresh
| Command | Does |
|---|---|
inventory <name> | The server, its buckets or databases and mappings, and what the credential can read. |
alerts <name> [database] [words…] | The alert state, filtered by words such as critical, acknowledged, downtime, flapping, a host or site=north. |
ask <name> "<question>" | A list or alert-state question, as in What the server holds. |
Add --json for machine-readable output, --refresh to read a bucket’s structure again. Connection commands are on Set up InfluxDB.