From 3aae1e80fb5d0ebfddba68a55730cec602eb10a2 Mon Sep 17 00:00:00 2001 From: Lou Knauer Date: Mon, 11 Oct 2021 10:55:36 +0200 Subject: [PATCH] host to hostname in lp; update README.md --- .gitignore | 2 +- README.md | 6 +++--- metric-store.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 4de07ca..5865635 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ # vendor/ # Project specific ignores -/archive +/var diff --git a/README.md b/README.md index b79fd65..ac7e8f5 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/metric-store.go b/metric-store.go index a790494..9909f95 100644 --- a/metric-store.go +++ b/metric-store.go @@ -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)