host to hostname in lp; update README.md

This commit is contained in:
Lou Knauer 2021-10-11 10:55:36 +02:00
parent 2fc6ad284f
commit 3aae1e80fb
3 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -16,4 +16,4 @@
# vendor/ # vendor/
# Project specific ignores # Project specific ignores
/archive /var

View File

@ -84,6 +84,8 @@ Example selectors:
### Config file ### Config file
All durations are specified in seconds.
- `metrics`: Map of metric-name to objects with the following properties - `metrics`: Map of metric-name to objects with the following properties
- `frequency`: Timestep/Interval/Resolution of this metric (In seconds) - `frequency`: Timestep/Interval/Resolution of this metric (In seconds)
- `aggregation`: Can be `"sum"`, `"avg"` or `null` - `aggregation`: Can be `"sum"`, `"avg"` or `null`
@ -92,9 +94,7 @@ Example selectors:
- `"avg"` means that values from the child levels are averaged for the parent level - `"avg"` means that values from the child levels are averaged for the parent level
- `scope`: Unused at the moment, should be something like `"node"`, `"socket"` or `"cpu"` - `scope`: Unused at the moment, should be something like `"node"`, `"socket"` or `"cpu"`
- `nats`: Url of NATS.io server (The `updates` channel will be subscribed for metrics) - `nats`: Url of NATS.io server (The `updates` channel will be subscribed for metrics)
- `archive-root`: Directory to be used as archive - `jwt-public-key`: Base64 encoded string, use this to verify requests to the HTTP API
- `restore-last-hours`: After restart, load data from the past *X* hours back to memory
- `checkpoint-interval-hours`: Every *X* hours, write currently held data to disk
### Test the complete setup (excluding ClusterCockpit itself) ### Test the complete setup (excluding ClusterCockpit itself)

View File

@ -72,7 +72,7 @@ func handleLine(dec *lineprotocol.Decoder) {
switch string(key) { switch string(key) {
case "cluster": case "cluster":
cluster = string(val) cluster = string(val)
case "host": case "hostname":
host = string(val) host = string(val)
case "type": case "type":
typeName = string(val) typeName = string(val)