MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/appengine-sidecars-docker / functions

Functions128 in github.com/GoogleCloudPlatform/appengine-sidecars-docker

↓ 12 callersFunctionverifyContainerMetricInt64Value
(t *testing.T, data []*mpb.Metric, name, label string, value int64)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:211
↓ 10 callersMethodcheckConsistency
(bounds []float64)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:172
↓ 10 callersFunctionfakeNow
()
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:24
↓ 9 callersFunctionverifyContainerMetricAbsent
(t *testing.T, data []*mpb.Metric, name, label string)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:239
↓ 6 callersFunctionNewVMAgeCollector
NewVMAgeCollector creates a new VMAgeCollector that generates metrics based on the buildDate and vmImageName.
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:49
↓ 6 callersMethodscrapeNginxStats
Get the stats from the nginx latency status module and parse them into the NginxStats struct.
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:101
↓ 6 callersMethodsetupCollection
()
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:101
↓ 5 callersFunctionMakeBuckets
MakeBuckets generates a proto representation of a distribution containing a single value. bounds defines the bucket boundaries of the distribution.
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:66
↓ 4 callersFunctionNewFactory
NewFactory creates and returns a factory for the docker stats receiver.
opentelemetry_collector/receiver/dockerstats/factory.go:39
↓ 4 callersMethodappendDistributionMetric
( stats *LatencyStats, bucketOptions *metricspb.DistributionValue_BucketOptions, metrics []*metricspb.Metri
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:147
↓ 4 callersFunctioncalculateImageAge
(buildDate time.Time, now time.Time)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:73
↓ 4 callersFunctiongetBucketIndex
(val float64, bounds []float64)
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:78
↓ 4 callersFunctiongetResponseFromJSON
(json string, status int)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:71
↓ 3 callersFunctionGetSumOfSquaredDeviationsFromIntDist
GetSumOfSquaredDeviationsFromIntDist calculates the sum of squared deviations from the mean. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) C
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:133
↓ 3 callersFunctionMakeLabelValue
MakeLabelValue generates a proto representation of a metric label with value as its value.
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:102
↓ 3 callersFunctionNewFactory
NewFactory creates and returns a factory for the nginx receiver.
opentelemetry_collector/receiver/nginxreceiver/factory.go:47
↓ 3 callersFunctionNewFactory
NewFactory creates and returns a factory for the vm age receiver.
opentelemetry_collector/receiver/vmagereceiver/factory.go:40
↓ 3 callersFunctionappendError
(err error, newerr error)
opentelemetry_collector/components.go:31
↓ 3 callersFunctioncheckDistributionMetricValue
(t *testing.T, data []*metricspb.Metric, name string, stats *LatencyStats)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:382
↓ 3 callersMethodparseDate
(date string)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:69
↓ 3 callersMethodscrapeAndExport
()
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:201
↓ 3 callersMethodscrapeAndExportVMImageAge
()
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:153
↓ 3 callersFunctionverifyContainerMetricDoubleValue
(t *testing.T, data []*mpb.Metric, name, label string, value float64)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:225
↓ 2 callersFunctionMakeExponentialBucketOptions
MakeExponentialBucketOptions generates a proto representation of a config which, defines a distribution's bounds. This defines maxExponent + 2 buckets
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:37
↓ 2 callersFunctionassertMetricGreaterThan0Double
(t *testing.T, expectedMetricDescriptor *metricspb.MetricDescriptor, metrics pdata.Metrics)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:207
↓ 2 callersMethodexport
()
opentelemetry_collector/receiver/dockerstats/scraper.go:144
↓ 2 callersMethodexport
(metrics []*metricspb.Metric, errorKey string)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:145
↓ 2 callersFunctionformatBuckets
(distribution []int64)
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:90
↓ 2 callersMethodmakeErrorMetrics
()
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:128
↓ 2 callersFunctionmakeMetrics
(metricDescriptor *metricspb.MetricDescriptor, timeseries *metricspb.TimeSeries)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:136
↓ 2 callersFunctionmakeTimeseriesFromDistribution
makeTimeseriesFromDistribution formats a distribution proto as a TimeSeries.
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:167
↓ 2 callersMethodscrapeAndExportVMReadyTime
(readyTime float64)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:171
↓ 2 callersMethodstart
()
opentelemetry_collector/receiver/dockerstats/scraper.go:123
↓ 2 callersMethodstop
()
opentelemetry_collector/receiver/dockerstats/scraper.go:140
↓ 1 callersMethodConsumeMetrics
(ctx context.Context, md pdata.Metrics)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:161
↓ 1 callersMethodConsumeMetrics
(ctx context.Context, metrics pdata.Metrics)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:89
↓ 1 callersMethodConsumeMetrics
(ctx context.Context, metrics pdata.Metrics)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:128
↓ 1 callersMethodContainerInspect
(ctx context.Context, id string)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:113
↓ 1 callersMethodContainerList
(ctx context.Context, opts types.ContainerListOptions)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:29
↓ 1 callersMethodContainerStats
(ctx context.Context, id string, stream bool)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:46
↓ 1 callersFunctionFormatBucketOptions
FormatBucketOptions formats a []float64 bounds as a DistributionValue_BucketOptions proto. bounds should list the upper boundaries of the distribution
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:54
↓ 1 callersFunctionMakeDoubleTimeSeries
MakeDoubleTimeSeries generates a proto representation of a timeseries containing a single point for an double metric.
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:22
↓ 1 callersFunctionMakeInt64TimeSeries
MakeInt64TimeSeries generates a proto representation of a timeseries containing a single point for an int64 metric.
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:13
↓ 1 callersFunctionMakeSingleValueDistributionTimeSeries
MakeSingleValueDistributionTimeSeries generates a proto representation of a timeseries containing a single point consisting of a distribution containi
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:112
↓ 1 callersFunctionNewNginxStatsCollector
NewNginxStatsCollector creates a new NginxStatsCollector that generates metrics based on nginx stats found by polling the url
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:54
↓ 1 callersMethodStartCollection
StartCollection starts a go routine that periodically polls nginx for stats and exports metrics based on them.
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:77
↓ 1 callersMethodStartCollection
StartCollection starts a go routine with a ticker that periodically generates and exports the metrics.
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:83
↓ 1 callersMethodStopCollection
StopCollection stops the polling for nginx stats and the export of the metrics.
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:96
↓ 1 callersMethodStopCollection
StopCollection stops the generation and export of the metrics.
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector.go:124
↓ 1 callersFunctioncomponents
()
opentelemetry_collector/components.go:38
↓ 1 callersMethodcontainerInfoToMetrics
(info containerInfo, labelValues []*mpb.LabelValue)
opentelemetry_collector/receiver/dockerstats/scraper.go:272
↓ 1 callersFunctionfakeNow
()
opentelemetry_collector/receiver/dockerstats/scraper_test.go:166
↓ 1 callersFunctionnewScraper
(scrapeInterval time.Duration, metricConsumer consumer.Metrics, logger *zap.Logger)
opentelemetry_collector/receiver/dockerstats/scraper.go:107
↓ 1 callersMethodreadContainerInfo
(ctx context.Context, id string)
opentelemetry_collector/receiver/dockerstats/scraper.go:249
↓ 1 callersMethodreadResourceUsageStats
(ctx context.Context, id string)
opentelemetry_collector/receiver/dockerstats/scraper.go:187
↓ 1 callersFunctionreadStatsJSON
readStatsJSON parses the stats JSON and sets defaults.
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector.go:121
↓ 1 callersMethodstoreMetric
(toStore pdata.Metrics)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:124
↓ 1 callersMethodusageStatsToMetrics
(stats *types.StatsJSON, labelValues []*mpb.LabelValue)
opentelemetry_collector/receiver/dockerstats/scraper.go:206
MethodCapabilities
()
opentelemetry_collector/receiver/dockerstats/scraper_test.go:155
MethodCapabilities
()
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:83
MethodCapabilities
()
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:114
MethodContainerList
(_ context.Context, _ types.ContainerListOptions)
opentelemetry_collector/receiver/dockerstats/scraper_test.go:252
FunctionMakeDistributionTimeSeries
MakeDistributionTimeSeries formats a distribution and its metadata as a TimeSeries.
opentelemetry_collector/receiver/metricgenerator/metric_generator.go:143
MethodShutdown
Shutdown tells this receiver to stop.
opentelemetry_collector/receiver/dockerstats/metrics_receiver.go:28
MethodShutdown
Shutdown stops and cancels the underlying nginx metrics generator.
opentelemetry_collector/receiver/nginxreceiver/metrics_receiver.go:27
MethodShutdown
Shutdown stops and cancels the underlying VM metrics generator.
opentelemetry_collector/receiver/vmagereceiver/metrics_receiver.go:27
MethodStart
Start tells this receiver to start.
opentelemetry_collector/receiver/dockerstats/metrics_receiver.go:20
MethodStart
Start starts the underlying nginx metrics generator.
opentelemetry_collector/receiver/nginxreceiver/metrics_receiver.go:19
MethodStart
Start starts the underlying VM metrics generator.
opentelemetry_collector/receiver/vmagereceiver/metrics_receiver.go:19
FunctionTestAppendDistributionMetric
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:321
FunctionTestCalculateImageAge
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:24
FunctionTestCalculateImageAgeWith0Age
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:41
FunctionTestCalculateImageAgeWithNegativeAge
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:33
FunctionTestCheckConsistency
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:223
FunctionTestCheckConsistencyDistributionLengthErr
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:236
FunctionTestCheckConsistencyNegativeDistribution
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:293
FunctionTestCheckConsistencyNegativeRequest
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:251
FunctionTestCheckConsistencyNegativeSum
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:279
FunctionTestCheckConsistencyNegativeSumSquares
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:265
FunctionTestCheckConsistencyUnsetDistribution
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:307
FunctionTestCreateDefaultConfig
(t *testing.T)
opentelemetry_collector/receiver/dockerstats/factory_test.go:14
FunctionTestCreateDefaultConfig
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/factory_test.go:14
FunctionTestCreateDefaultConfig
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/factory_test.go:14
FunctionTestCreateMetricsReceiver
(t *testing.T)
opentelemetry_collector/receiver/dockerstats/factory_test.go:37
FunctionTestCreateReceiver
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/factory_test.go:21
FunctionTestCreateReceiver
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/factory_test.go:21
FunctionTestCreateTracesReceiver
(t *testing.T)
opentelemetry_collector/receiver/dockerstats/factory_test.go:23
FunctionTestLoadConfig
(t *testing.T)
opentelemetry_collector/receiver/dockerstats/config_test.go:14
FunctionTestLoadConfig
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/config_test.go:15
FunctionTestLoadConfig
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/config_test.go:15
FunctionTestParseInputTimes
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:50
FunctionTestParseInputTimesError
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:62
FunctionTestScrapeAndExport
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:403
FunctionTestScrapeAndExportError
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:441
FunctionTestScrapeAndExportVMImageAge
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:133
FunctionTestScrapeAndExportVMImageAgeWithError
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:171
FunctionTestScrapeAndExportVMReadyTime
(t *testing.T)
opentelemetry_collector/receiver/vmagereceiver/vm_age_collector_test.go:152
FunctionTestScrapeNginxStats
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:94
FunctionTestScrapeNginxStatsError
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:206
FunctionTestScrapeNginxStatsMalformatted
(t *testing.T)
opentelemetry_collector/receiver/nginxreceiver/nginx_stats_collector_test.go:189
next →1–100 of 128, ranked by callers