You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
# This config file controls when to prune metrics from the index
441
+
# Note:
442
+
# * This file is optional. If it is not present, we won't prune data
443
+
# * Anything not matched will not be pruned
444
+
# * Patterns are string prefix matchers
445
+
# * max-stale is a duration like 7d
446
+
447
+
[default]
448
+
pattern =
449
+
max-stale = 0
450
+
451
+
# storage-aggregation.conf
452
+
453
+
```
454
+
# This config file controls which summaries are created (using which consolidation functions) for your lower-precision archives, as defined in storage-schemas.conf
455
+
# It is an extension of http://graphite.readthedocs.io/en/latest/config-carbon.html#storage-aggregation-conf
456
+
# Note:
457
+
# * This file is optional. If it is not present, we will use avg for everything
458
+
# * Anything not matched also uses avg for everything
459
+
# * xFilesFactor is not honored yet. What it is in graphite is a floating point number between 0 and 1 specifying what fraction of the previous retention level's slots must have non-null values in order to aggregate to a non-null value. The default is 0.5.
460
+
# * aggregationMethod specifies the functions used to aggregate values for the next retention level. Legal methods are avg/average, sum, min, max, and last. The default is average.
461
+
# Unlike Graphite, you can specify multiple, as it is often handy to have different summaries available depending on what analysis you need to do.
462
+
# When using multiple, the first one is used for reading. In the future, we will add capabilities to select the different archives for reading.
463
+
# * the settings configured when metrictank starts are what is applied. So you can enable or disable archives by restarting metrictank.
464
+
#
465
+
# see https://github.com/grafana/metrictank/blob/master/docs/consolidation.md for related info.
466
+
467
+
[default]
468
+
pattern = .*
469
+
xFilesFactor = 0.1
470
+
aggregationMethod = avg,min,max
434
471
```
435
472
436
473
# storage-schemas.conf
@@ -494,27 +531,5 @@ retentions = 1s:35d:10min:7
494
531
# reorderBuffer = 20
495
532
```
496
533
497
-
# storage-aggregation.conf
498
-
499
-
```
500
-
# This config file controls which summaries are created (using which consolidation functions) for your lower-precision archives, as defined in storage-schemas.conf
501
-
# It is an extension of http://graphite.readthedocs.io/en/latest/config-carbon.html#storage-aggregation-conf
502
-
# Note:
503
-
# * This file is optional. If it is not present, we will use avg for everything
504
-
# * Anything not matched also uses avg for everything
505
-
# * xFilesFactor is not honored yet. What it is in graphite is a floating point number between 0 and 1 specifying what fraction of the previous retention level's slots must have non-null values in order to aggregate to a non-null value. The default is 0.5.
506
-
# * aggregationMethod specifies the functions used to aggregate values for the next retention level. Legal methods are avg/average, sum, min, max, and last. The default is average.
507
-
# Unlike Graphite, you can specify multiple, as it is often handy to have different summaries available depending on what analysis you need to do.
508
-
# When using multiple, the first one is used for reading. In the future, we will add capabilities to select the different archives for reading.
509
-
# * the settings configured when metrictank starts are what is applied. So you can enable or disable archives by restarting metrictank.
510
-
#
511
-
# see https://github.com/grafana/metrictank/blob/master/docs/consolidation.md for related info.
512
-
513
-
[default]
514
-
pattern = .*
515
-
xFilesFactor = 0.1
516
-
aggregationMethod = avg,min,max
517
-
```
518
-
519
534
This file is generated by [config-to-doc](https://github.com/grafana/metrictank/blob/master/scripts/dev/config-to-doc.sh)
casIdx.IntVar(&writeQueueSize, "write-queue-size", 100000, "Max number of metricDefs allowed to be unwritten to cassandra")
84
83
casIdx.BoolVar(&updateCassIdx, "update-cassandra-index", true, "synchronize index changes to cassandra. not all your nodes need to do this.")
85
84
casIdx.DurationVar(&updateInterval, "update-interval", time.Hour*3, "frequency at which we should update the metricDef lastUpdate field, use 0s for instant updates")
86
-
casIdx.DurationVar(&maxStale, "max-stale", 0, "clear series from the index if they have not been seen for this much time.")
87
85
casIdx.DurationVar(&pruneInterval, "prune-interval", time.Hour*3, "Interval at which the index should be checked for stale series.")
88
86
casIdx.IntVar(&protoVer, "protocol-version", 4, "cql protocol version to use")
89
87
casIdx.BoolVar(&createKeyspace, "create-keyspace", true, "enable the creation of the index keyspace and tables, only one node needs this")
iter:=c.session.Query("SELECT id, orgid, partition, name, interval, unit, mtype, tags, lastupdate from metric_idx where partition=?", partition).Iter()
0 commit comments