mirror of
https://github.com/ClusterCockpit/cc-metric-store.git
synced 2024-11-10 05:07:25 +01:00
host to hostname in lp; update README.md
This commit is contained in:
parent
2fc6ad284f
commit
3aae1e80fb
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,4 +16,4 @@
|
|||||||
# vendor/
|
# vendor/
|
||||||
|
|
||||||
# Project specific ignores
|
# Project specific ignores
|
||||||
/archive
|
/var
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user