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/
# Project specific ignores
/archive
/var

View File

@ -84,6 +84,8 @@ Example selectors:
### Config file
All durations are specified in seconds.
- `metrics`: Map of metric-name to objects with the following properties
- `frequency`: Timestep/Interval/Resolution of this metric (In seconds)
- `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
- `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)
- `archive-root`: Directory to be used as archive
- `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
- `jwt-public-key`: Base64 encoded string, use this to verify requests to the HTTP API
### Test the complete setup (excluding ClusterCockpit itself)

View File

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