mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 23:41:09 +02:00
core/redis: remove redis
This commit is contained in:
parent
d610b9c25c
commit
adfc484adb
27 changed files with 24 additions and 1187 deletions
|
@ -121,33 +121,3 @@ func (r *metricRegistry) setConfigChecksum(service string, configName string, ch
|
|||
}
|
||||
m.Set(float64(checksum))
|
||||
}
|
||||
|
||||
func (r *metricRegistry) addInt64DerivedGaugeMetric(name, desc, service string, f func() int64) {
|
||||
m, err := r.registry.AddInt64DerivedGauge(name, metric.WithDescription(desc),
|
||||
metric.WithLabelKeys(metrics.ServiceLabel))
|
||||
if err != nil {
|
||||
log.Error(context.TODO()).Err(err).Str("service", service).Msg("telemetry/metrics: failed to register metric")
|
||||
return
|
||||
}
|
||||
|
||||
err = m.UpsertEntry(f, metricdata.NewLabelValue(service))
|
||||
if err != nil {
|
||||
log.Error(context.TODO()).Err(err).Str("service", service).Msg("telemetry/metrics: failed to update metric")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func (r *metricRegistry) addInt64DerivedCumulativeMetric(name, desc, service string, f func() int64) {
|
||||
m, err := r.registry.AddInt64DerivedCumulative(name, metric.WithDescription(desc),
|
||||
metric.WithLabelKeys(metrics.ServiceLabel))
|
||||
if err != nil {
|
||||
log.Error(context.TODO()).Err(err).Str("service", service).Msg("telemetry/metrics: failed to register metric")
|
||||
return
|
||||
}
|
||||
|
||||
err = m.UpsertEntry(f, metricdata.NewLabelValue(service))
|
||||
if err != nil {
|
||||
log.Error(context.TODO()).Err(err).Str("service", service).Msg("telemetry/metrics: failed to update metric")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue