_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c167500
validation
// NewZookeeperTreeCache creates a new ZookeeperTreeCache for a given path.
{ "resource": "" }
c167501
validation
// NewManager is the Discovery Manager constructor.
{ "resource": "" }
c167502
validation
// Name sets the name of the manager.
{ "resource": "" }
c167503
validation
// Run starts the background processing
{ "resource": "" }
c167504
validation
// ApplyConfig removes all running discovery providers and starts new ones using the provided config.
{ "resource": "" }
c167505
validation
// StartCustomProvider is used for sdtool. Only use this if you know what you're doing.
{ "resource": "" }
c167506
validation
// Run implements the Worker interface.
{ "resource": "" }
c167507
validation
// NewNerveDiscovery returns a new Discovery for the given Nerve config.
{ "resource": "" }
c167508
validation
// NewServersetDiscovery returns a new Discovery for the given serverset config.
{ "resource": "" }
c167509
validation
// NewDiscovery returns a new discovery along Zookeeper parses with // the given parse function.
{ "resource": "" }
c167510
validation
// Fuzz the metric selector parser.
{ "resource": "" }
c167511
validation
// Fuzz the expression parser.
{ "resource": "" }
c167512
validation
// Fuzz the parser.
{ "resource": "" }
c167513
validation
// NewManager is the Manager constructor
{ "resource": "" }
c167514
validation
// Run receives and saves target set updates and triggers the scraping loops reloading. // Reloading happens in the background so that it doesn't block receiving targets updates.
{ "resource": "" }
c167515
validation
// setJitterSeed calculates a global jitterSeed per server relying on extra label set.
{ "resource": "" }
c167516
validation
// Stop cancels all running scrape pools and blocks until all have exited.
{ "resource": "" }
c167517
validation
// ApplyConfig resets the manager's target providers and job configurations as defined by the new cfg.
{ "resource": "" }
c167518
validation
// TargetsAll returns active and dropped targets grouped by job_name.
{ "resource": "" }
c167519
validation
// TargetsActive returns the active targets currently being scraped.
{ "resource": "" }
c167520
validation
// TargetsDropped returns the dropped targets during relabelling.
{ "resource": "" }
c167521
validation
// getFqdn returns a FQDN if it's possible, otherwise falls back to hostname.
{ "resource": "" }
c167522
validation
// tagsFromMetric translates Prometheus metric into OpenTSDB tags.
{ "resource": "" }
c167523
validation
// Write sends a batch of samples to OpenTSDB via its HTTP API.
{ "resource": "" }
c167524
validation
// QueryableClient returns a storage.Queryable which queries the given // Client to select series sets.
{ "resource": "" }
c167525
validation
// Select implements storage.Querier and uses the given matchers to read series // sets from the Client.
{ "resource": "" }
c167526
validation
// ExternalLabelsHandler returns a storage.Queryable which creates a // externalLabelsQuerier.
{ "resource": "" }
c167527
validation
// Select adds equality matchers for all external labels to the list of matchers // before calling the wrapped storage.Queryable. The added external labels are // removed from the returned series sets.
{ "resource": "" }
c167528
validation
// PreferLocalStorageFilter returns a QueryableFunc which creates a NoopQuerier // if requested timeframe can be answered completely by the local TSDB, and // reduces maxt if the timeframe can be partially answered by TSDB.
{ "resource": "" }
c167529
validation
// RequiredMatchersFilter returns a storage.Queryable which creates a // requiredMatchersQuerier.
{ "resource": "" }
c167530
validation
// Select returns a NoopSeriesSet if the given matchers don't match the label // set of the requiredMatchersQuerier. Otherwise it'll call the wrapped querier.
{ "resource": "" }
c167531
validation
// addExternalLabels adds matchers for each external label. External labels // that already have a corresponding user-supplied matcher are skipped, as we // assume that the user explicitly wants to select a different value for them. // We return the new set of matchers, along with a map of labels for which // matchers ...
{ "resource": "" }
c167532
validation
// NewInstanceDiscovery returns a new instance discovery.
{ "resource": "" }
c167533
validation
// ResolvedAt returns true iff the activity interval ended before // the given timestamp.
{ "resource": "" }
c167534
validation
// NewManager is the manager constructor.
{ "resource": "" }
c167535
validation
// ApplyConfig updates the status state as the new config requires.
{ "resource": "" }
c167536
validation
// Run dispatches notifications continuously.
{ "resource": "" }
c167537
validation
// Send queues the given notification requests for processing. // Panics if called on a handler that is not running.
{ "resource": "" }
c167538
validation
// Alertmanagers returns a slice of Alertmanager URLs.
{ "resource": "" }
c167539
validation
// DroppedAlertmanagers returns a slice of Alertmanager URLs.
{ "resource": "" }
c167540
validation
// sendAll sends the alerts to all configured Alertmanagers concurrently. // It returns true if the alerts could be sent successfully to at least one Alertmanager.
{ "resource": "" }
c167541
validation
// Stop shuts down the notification handler.
{ "resource": "" }
c167542
validation
// sync extracts a deduplicated set of Alertmanager endpoints from a list // of target groups definitions.
{ "resource": "" }
c167543
validation
// alertmanagersFromGroup extracts a list of alertmanagers from a target group // and an associated AlertmanagerConfig.
{ "resource": "" }
c167544
validation
// String returns a descriptive string for the item.
{ "resource": "" }
c167545
validation
// isAggregator returns true if the item is an aggregator that takes a parameter. // Returns false otherwise
{ "resource": "" }
c167546
validation
// isCompairsonOperator returns true if the item corresponds to a comparison operator. // Returns false otherwise.
{ "resource": "" }
c167547
validation
// isSetOperator returns whether the item corresponds to a set operator.
{ "resource": "" }
c167548
validation
// Precedence returns the operator precedence of the binary // operator op. If op is not a binary operator, the result // is LowestPrec.
{ "resource": "" }
c167549
validation
// next returns the next rune in the input.
{ "resource": "" }
c167550
validation
// peek returns but does not consume the next rune in the input.
{ "resource": "" }
c167551
validation
// emit passes an item back to the client.
{ "resource": "" }
c167552
validation
// linePosition reports at which character in the current line // we are on.
{ "resource": "" }
c167553
validation
// nextItem returns the next item from the input.
{ "resource": "" }
c167554
validation
// lex creates a new scanner for the input string.
{ "resource": "" }
c167555
validation
// lexInsideBraces scans the inside of a vector selector. Keywords are ignored and // scanned as identifiers.
{ "resource": "" }
c167556
validation
// lexValueSequence scans a value sequence of a series description.
{ "resource": "" }
c167557
validation
// digitVal returns the digit value of a rune or 16 in case the rune does not // represent a valid digit.
{ "resource": "" }
c167558
validation
// lexString scans a quoted string. The initial quote has already been seen.
{ "resource": "" }
c167559
validation
// lexSpace scans a run of space characters. One space has already been seen.
{ "resource": "" }
c167560
validation
// lexLineComment scans a line comment. Left comment marker is known to be present.
{ "resource": "" }
c167561
validation
// lexNumberOrDuration scans a number or a duration item.
{ "resource": "" }
c167562
validation
// scanNumber scans numbers of different formats. The scanned item is // not necessarily a valid number. This case is caught by the parser.
{ "resource": "" }
c167563
validation
// lexIdentifier scans an alphanumeric identifier. The next character // is known to be a letter.
{ "resource": "" }
c167564
validation
// lexKeywordOrIdentifier scans an alphanumeric identifier which may contain // a colon rune. If the identifier is a keyword the respective keyword item // is scanned.
{ "resource": "" }
c167565
validation
// isLabel reports whether the string can be used as label.
{ "resource": "" }
c167566
validation
// Series returns the bytes of the series, the timestamp if set, and the value // of the current sample.
{ "resource": "" }
c167567
validation
// Type returns the metric name and type in the current entry. // Must only be called after Next returned a type entry. // The returned byte slices become invalid after the next call to Next.
{ "resource": "" }
c167568
validation
// nextToken returns the next token from the promlexer. It skips over tabs // and spaces.
{ "resource": "" }
c167569
validation
// NewAPI returns an initialized API type.
{ "resource": "" }
c167570
validation
// mergeLabels merges two sets of sorted proto labels, preferring those in // primary to those in secondary when there is an overlap.
{ "resource": "" }
c167571
validation
// Set the storage.
{ "resource": "" }
c167572
validation
// Get the storage.
{ "resource": "" }
c167573
validation
// Querier implements the Storage interface.
{ "resource": "" }
c167574
validation
// Appender implements the Storage interface.
{ "resource": "" }
c167575
validation
// Close implements the Storage interface.
{ "resource": "" }
c167576
validation
// Adapter return an adapter as storage.Storage.
{ "resource": "" }
c167577
validation
// Open returns a new storage backed by a TSDB database that is configured for Prometheus.
{ "resource": "" }
c167578
validation
// Appender returns a new appender against the storage.
{ "resource": "" }
c167579
validation
// NewRegexp creates a new anchored Regexp and returns an error if the // passed-in regular expression does not compile.
{ "resource": "" }
c167580
validation
// MustNewRegexp works like NewRegexp, but panics if the regular expression does not compile.
{ "resource": "" }
c167581
validation
// Process returns a relabeled copy of the given label set. The relabel configurations // are applied in order of input. // If a label set is dropped, nil is returned. // May return the input labelSet modified.
{ "resource": "" }
c167582
validation
// sum64 sums the md5 hash to an uint64.
{ "resource": "" }
c167583
validation
// stop terminates all scrape loops and returns after they all terminated.
{ "resource": "" }
c167584
validation
// reload the scrape pool with the given scrape configuration. The target state is preserved // but all scrape loops are restarted with the new scrape configuration. // This method returns after all scrape loops that were stopped have stopped scraping.
{ "resource": "" }
c167585
validation
// Sync converts target groups into actual scrape targets and synchronizes // the currently running scraper with the resulting set and returns all scraped and dropped targets.
{ "resource": "" }
c167586
validation
// sync takes a list of potentially duplicated targets, deduplicates them, starts // scrape loops for new targets, and stops scrape loops for disappeared targets. // It returns after all stopped scrape loops terminated.
{ "resource": "" }
c167587
validation
// appender returns an appender for ingested samples from the target.
{ "resource": "" }
c167588
validation
// Uname returns the uname of the host machine.
{ "resource": "" }
c167589
validation
// DecodeReadRequest reads a remote.Request from a http.Request.
{ "resource": "" }
c167590
validation
// EncodeReadResponse writes a remote.Response to a http.ResponseWriter.
{ "resource": "" }
c167591
validation
// ToQuery builds a Query proto.
{ "resource": "" }
c167592
validation
// FromQuery unpacks a Query proto.
{ "resource": "" }
c167593
validation
// ToQueryResult builds a QueryResult proto.
{ "resource": "" }
c167594
validation
// FromQueryResult unpacks a QueryResult proto.
{ "resource": "" }
c167595
validation
// Seek implements storage.SeriesIterator.
{ "resource": "" }
c167596
validation
// At implements storage.SeriesIterator.
{ "resource": "" }
c167597
validation
// Next implements storage.SeriesIterator.
{ "resource": "" }
c167598
validation
// NewBufferIterator returns a new iterator that buffers the values within the // time range of the current element and the duration of delta before.
{ "resource": "" }
c167599
validation
// Reset re-uses the buffer with a new iterator, resetting the buffered time // delta to its original value.
{ "resource": "" }