PostCreation implements SeriesLifecycleCallback interface.
(metric labels.Labels)
| 542 | |
| 543 | // PostCreation implements SeriesLifecycleCallback interface. |
| 544 | func (u *userTSDB) PostCreation(metric labels.Labels) { |
| 545 | u.instanceSeriesCount.Inc() |
| 546 | |
| 547 | metricName, err := extract.MetricNameFromLabels(metric) |
| 548 | if err != nil { |
| 549 | // This should never happen because it has already been checked in PreCreation(). |
| 550 | return |
| 551 | } |
| 552 | u.seriesInMetric.increaseSeriesForMetric(metricName) |
| 553 | u.labelSetCounter.increaseSeriesLabelSet(u, metric) |
| 554 | |
| 555 | if u.postingCache != nil { |
| 556 | u.postingCache.ExpireSeries(metric) |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | // PostDeletion implements SeriesLifecycleCallback interface. |
| 561 | func (u *userTSDB) PostDeletion(metrics map[chunks.HeadSeriesRef]labels.Labels) { |
nothing calls this directly
no test coverage detected