Holger Obermaier
0ffbedb3ec
For older versions of go slices is not part of the installation
2023-08-17 15:05:13 +02:00
Holger Obermaier
eafeea1a76
Use generic function to compute median
2023-08-17 14:46:22 +02:00
Holger Obermaier
fcda7a6921
Add error value to sumAnyType
2023-08-17 13:55:31 +02:00
Holger Obermaier
a25f4f8b8d
Use generic function to compute average
2023-08-17 13:50:46 +02:00
Holger Obermaier
ceff67085b
Use generic function to compute maximum
2023-08-17 11:46:15 +02:00
Holger Obermaier
ec86a83a27
Use generic function to compute minimum
2023-08-17 11:41:26 +02:00
Holger Obermaier
89c93185d4
Add missing case for type []int32
2023-08-17 11:24:06 +02:00
Holger Obermaier
c3004f8c6d
Use generic function to simplify code
2023-08-17 10:20:47 +02:00
Holger Obermaier
a1c2c3856d
Allow values to be a slice of type float64, float32, int, int64, int32, bool
2023-08-17 09:48:41 +02:00
Holger Obermaier
fa8dd5992d
Allow sum function to handle non float types
2023-08-17 08:16:19 +02:00
Holger Obermaier
0b28c55162
Use only as many arguments as required
2023-08-17 08:03:33 +02:00
Thomas Gruber
4bd71224df
move maybe-usable-by-other-cc-components to pkg. Fix all files to use the new paths ( #88 )
2022-10-10 11:53:11 +02:00
Thomas Roehl
32bb9c5fc0
Update ccMetric README and FromMetric copy
2022-07-27 18:06:41 +02:00
Thomas Roehl
7ddc889f06
MetricRouter: Fix JSON in README
2022-05-20 16:06:54 +02:00
Thomas Gruber
826f364772
CC topology module update ( #76 )
...
* Rename CPU to hardware thread, write some comments
* Do renaming in other parts
* Remove CpuList and SocketList function from metricCollector. Available in ccTopology
2022-05-13 14:28:07 +02:00
Thomas Gruber
1db5f3b29a
Rename cpu
type to hwthread
( #69 )
...
* Rename 'cpu' type to 'hwthread' to avoid naming clashes with MetricStore and CC-Webfrontend
2022-05-13 14:09:45 +02:00
Thomas Gruber
80d92d6d28
Units with cc-units ( #64 )
...
* Add option to normalize units with cc-unit
* Add unit conversion to router
* Add option to change unit prefix in the router
* Add to MetricRouter README
* Add order of operations in router to README
* Use second add_tags/del_tags only if metric gets renamed
2022-05-13 13:30:02 +02:00
Thomas Roehl
ecdb4c1bcf
Add debug message when updating interval_timestep
2022-04-04 02:55:44 +02:00
Thomas Roehl
4d5b1adbc8
Fix for interval_timestamp option
2022-04-04 02:26:04 +02:00
Thomas Roehl
622e94ae0e
Fix DieList() if system does not support dies. Explicitly set entries in CpuData list
2022-03-22 15:58:10 +01:00
Thomas Roehl
c506114480
Add processing order to MetricRouter README and add missing options
2022-03-18 12:29:00 +01:00
Thomas Roehl
657543dded
Ensure max_forward is at least 1
2022-03-18 12:28:52 +01:00
Thomas Gruber
57629a2e0a
Meta to tags list and map for sinks ( #63 )
...
* Change ccMetric->Influx functions
* Use a meta_as_tags string list in config but create a lookup map afterwards
* Add meta as tag logic to sampleSink
2022-03-15 16:16:26 +01:00
Thomas Roehl
3cf2f69a07
Make maxForward configurable, save old name in meta in rename metrics and make the hostname tag key configurable
2022-03-09 11:23:17 +01:00
Holger Obermaier
154b56000e
Allow concurrent access to condition map
2022-02-16 14:30:11 +01:00
Holger Obermaier
b44e226496
Add caching for condition evaluation
2022-02-16 13:59:32 +01:00
Holger Obermaier
248c815a1c
Make created language persistant
2022-02-16 08:40:57 +01:00
Holger Obermaier
d6154ff35b
Simplification
2022-02-15 13:51:46 +01:00
Holger Obermaier
2f0e229936
Simplify EvalBoolCondition
2022-02-15 13:35:24 +01:00
Holger Obermaier
a8821b7ac5
Add comments
2022-02-15 12:39:54 +01:00
Holger Obermaier
2031f35d9b
Cleanup
2022-02-15 11:36:17 +01:00
Holger Obermaier
69b31e87e7
Fix: Start cache manager only when NumCacheIntervals > 0
2022-02-15 11:27:42 +01:00
Thomas Roehl
247fb23de1
Try to operate on multiple metrics if channels if filled
2022-02-14 18:12:50 +01:00
Thomas Roehl
184d60cc58
Locking in MetricCache
2022-02-10 15:21:26 +01:00
Holger Obermaier
c47ac2ebc3
Cleanup
2022-02-08 12:22:56 +01:00
Holger Obermaier
6d55c376bd
Refactoring: Remove all *List() functions from CCMetric
2022-02-08 11:23:19 +01:00
Holger Obermaier
e1a7379c2e
Generate influxDB point for data type ccMetric
2022-02-08 09:31:08 +01:00
Holger Obermaier
af051b5e7e
Replace FieldList() by Fields()
2022-02-07 22:52:39 +01:00
Holger Obermaier
fe42e8bb95
Switch fields data type from []*lp.Field to map[string]interface{}
2022-02-07 22:41:31 +01:00
Holger Obermaier
627163d4df
Add method ToLineProtocol which generates influxDB line protocol for data type ccMetric
2022-02-07 21:14:23 +01:00
Thomas Roehl
6dd95d6fed
Export all ccMetric functions
2022-02-07 16:20:42 +01:00
Thomas Roehl
25bb395f02
Fix for NumaDomain getter in ccTopology
2022-02-07 13:22:26 +01:00
Thomas Gruber
fdb58b0be2
Sink specific configuration maps ( #25 )
...
* Use sink-specific configurations to have more flexibility. Adjust sample sink configuration files
* Add documentation
* Add links to individual sink readmes
* Fix link in README
* HTTPS for HttpSink
* If no CPU die id available, use the socket id instead
2022-02-04 18:12:24 +01:00
Thomas Gruber
92d4a9c2b9
Split MetricRouter and MetricAggregator ( #24 )
...
* Split MetricRouter and MetricAggregator
* Missing change in MetricCache
* Add README for MetricAggregator
2022-02-03 16:52:55 +01:00
Thomas Roehl
1222f7a32f
Configuration option to disable MetricCache completely
2022-02-02 15:30:14 +01:00
Thomas Roehl
2c13cecf13
Fix link in MetricRouter README
2022-02-02 14:52:19 +01:00
Thomas Roehl
af8654d325
Update MetricRouter README
2022-02-01 18:28:20 +01:00
Thomas Roehl
a4bd141786
Use the MetricAggregator for all calculations in the MetricRouter
2022-02-01 18:27:59 +01:00
Thomas Roehl
64a12b80bb
Add and export SetName() function for CCMetric
2022-02-01 18:27:16 +01:00
Thomas Roehl
8319d3de43
Add some more helper functions to ccTopology
2022-02-01 18:26:54 +01:00