No description
Find a file
ccliu 8729052623
vmagent: resolve the issue where usePromCompatibleNaming is not working (#6776)
Describe Your Changes
When I use usePromCompatibleNaming with vmagent to process data that
needs to be formatted from different sources such as InfluxDB, I find
that it doesn’t work

However, it works in vminsert. I found that vminsert uses the
HasRelabeling method to determine whether to relabel.
```go
func HasRelabeling() bool {
	pcs := pcsGlobal.Load()
	return pcs.Len() > 0 || *usePromCompatibleNaming
}
```
in vmagent, the decision to relabel is determined only by
pcsGlobal.Len() > 0. However, in the applyRelabeling method, the
usePromCompatibleNaming logic is also used to determine whether to
relabel in the error handling.
```go
func (rctx *relabelCtx) applyRelabeling(tss []prompbmarshal.TimeSeries, pcs *promrelabel.ParsedConfigs) []prompbmarshal.TimeSeries {
	if pcs.Len() == 0 && !*usePromCompatibleNaming {
		// Nothing to change.
		return tss
	}
```
So I think that the logic for determining whether to relabel in vmagent
is not as expected.

Checklist
The following checks are mandatory:

[]My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).

---------

Co-authored-by: Roman Khavronenko <hagen1778@gmail.com>
(cherry picked from commit d134a310f3)
2024-08-13 10:33:55 -04:00
.github Revert "deployment: build image for vmagent streamaggr benchmark (#6515)" 2024-07-16 13:34:16 +02:00
app vmagent: resolve the issue where usePromCompatibleNaming is not working (#6776) 2024-08-13 10:33:55 -04:00
cspell docs: add spellcheck command (#6562) 2024-07-11 12:40:24 +02:00
dashboards dashboards: add Scrape duration 0.99 quantile panel 2024-07-31 16:09:13 +02:00
deployment deployment: update compose images to v1.102.1 release 2024-08-02 11:29:48 +02:00
docs vmagent: resolve the issue where usePromCompatibleNaming is not working (#6776) 2024-08-13 10:33:55 -04:00
lib stream aggregation: do not allow to enable -stream.keepInput and `k… (#6723) 2024-08-13 09:08:27 -04:00
package/release simplify release process (#3012) 2022-08-31 02:28:45 +03:00
vendor vendor: updates metricsql to v0.77.0 with bugfix 2024-08-01 12:39:06 +02:00
.dockerignore added packer build for DigitalOcean Droplets (#1917) 2021-12-21 12:10:08 +02:00
.gitignore docs: removed redundant 'VictoriaLogs' from title (#6715) 2024-07-29 14:30:38 +02:00
.golangci.yml .golangci.yml: properly specify functions to exclude for return values check after the upgrade to v1.59.1 at 239a7b6e6f 2024-06-11 17:05:17 +02:00
.wwhrd.yml .wwhrd.yml: add ISC license, which is used by github.com/davecgh/go-spew 2022-12-14 14:56:06 -08:00
CODE_OF_CONDUCT.md A good change for MD files (#2353) 2022-03-22 14:01:04 +02:00
CONTRIBUTING.md Move CONTRIBUTING.md to docs/ 2024-04-20 23:12:53 +02:00
go.mod vendor: updates metricsql to v0.77.0 with bugfix 2024-08-01 12:39:06 +02:00
go.sum vendor: updates metricsql to v0.77.0 with bugfix 2024-08-01 12:39:06 +02:00
LICENSE LICENSE: update the current year from 2023 to 2024 2024-01-17 01:48:12 +02:00
logo.png Add logo 2018-11-29 21:47:17 +02:00
Makefile docs: grouped changelog docs, removed old make commands, replaced docs in root README with official docs links (#6727) 2024-07-31 16:15:08 +02:00
README.md docs: follow-up after 58e667c895 2024-07-31 16:20:28 +02:00
SECURITY.md add new LTS release v1.102.x 2024-08-02 11:15:25 +02:00
VM_logo.zip removed DS_Store files from VM_logo.zip (#1233) 2021-04-20 11:46:57 +03:00

VictoriaMetrics

Latest Release Docker Pulls Slack GitHub license Go Report Build Status codecov

VictoriaMetrics logo

VictoriaMetrics is a fast, cost-saving, and scalable solution for monitoring and managing time series data. It delivers high performance and reliability, making it an ideal choice for businesses of all sizes.

Here are some resources and information about VictoriaMetrics:

Yes, we open-source both the single-node VictoriaMetrics and the cluster version.

Prominent features

VictoriaMetrics is optimized for timeseries data, even when old time series are constantly replaced by new ones at a high rate, it offers a lot of features:

Enterprise version

In addition, the Enterprise version includes extra features:

  • Anomaly detection: Automation and simplification of your alerting rules, covering complex anomalies found in metrics data.
  • Backup automation: Automates regular backup procedures.
  • Multiple retentions: Reducing storage costs by specifying different retentions for different datasets.
  • Downsampling: Reducing storage costs and increasing performance for queries over historical data.
  • Stable releases with long-term support lines (LTS).
  • Comprehensive support: First-class consulting, feature requests and technical support provided by the core VictoriaMetrics dev team.
  • Many other features, which you can read about on the Enterprise page.

Contact us if you need enterprise support for VictoriaMetrics. Or you can request a free trial license here, downloaded Enterprise binaries are available at Github Releases.

We strictly apply security measures in everything we do. VictoriaMetrics has achieved security certifications for Database Software Development and Software-Based Monitoring Services. See Security page for more details.

Benchmarks

Some good benchmarks VictoriaMetrics achieved:

Community and contributions

Feel free asking any questions regarding VictoriaMetrics:

If you like VictoriaMetrics and want to contribute, then please read these docs.

Zip contains three folders with different image orientations (main color and inverted version).

Files included in each folder:

  • 2 JPEG Preview files
  • 2 PNG Preview files with transparent background
  • 2 EPS Adobe Illustrator EPS10 files

Logo Usage Guidelines

Font used

  • Lato Black
  • Lato Regular

Color Palette

We kindly ask

  • Please don't use any other font instead of suggested.
  • To keep enough clear space around the logo.
  • Do not change spacing, alignment, or relative locations of the design elements.
  • Do not change the proportions for any of the design elements or the design itself. You may resize as needed but must retain all proportions.