Skip to content

Commit

Permalink
enhance scrape config (#913)
Browse files Browse the repository at this point in the history
* enhance scrape config:
1. add ScrapeConfig CRD
address #847, #803
2. add `series_limit` option in scrape_configs, see https://docs.victoriametrics.com/vmagent/#scrape_config-enhancements.
3. add proxyUrl for VMProbe, address #731
4. fix option `disable_keep_alive` -> `disable_keepalive`
5. deprecate option `relabel_debug` and  `metric_relabel_debug` in scrape_configs, they were deprecated since [v1.85.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.85.0).

* fix test

* fix

* add docs

* add changelog

* add test

* typo

* simplify convert code
  • Loading branch information
Haleygo authored Apr 12, 2024
1 parent 9cabf98 commit 0500abb
Show file tree
Hide file tree
Showing 72 changed files with 9,739 additions and 197 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
## Overview

Design and implementation inspired by [prometheus-operator](https://github.com/prometheus-operator/prometheus-operator). It's great a tool for managing monitoring configuration of your applications. VictoriaMetrics operator has api capability with it.
So you can use familiar CRD objects: `ServiceMonitor`, `PodMonitor`, `PrometheusRule` and `Probe`. Or you can use VictoriaMetrics CRDs:
So you can use familiar CRD objects: `ServiceMonitor`, `PodMonitor`, `PrometheusRule`, `Probe` and `ScrapeConfig`. Or you can use VictoriaMetrics CRDs:
- `VMServiceScrape` - defines scraping metrics configuration from pods backed by services.
- `VMPodScrape` - defines scraping metrics configuration from pods.
- `VMRule` - defines alerting or recording rules.
- `VMProbe` - defines a probing configuration for targets with blackbox exporter.
- `VMScrapeConfig` - define a scrape config using any of the service discovery options supported in victoriametrics.

Besides, operator allows you to manage VictoriaMetrics applications inside kubernetes cluster and simplifies this process [quick-start](/docs/quick-start.md)
With CRD (Custom Resource Definition) you can define application configuration and apply it to your cluster [crd-objects](/docs/api.md).
Expand Down
2 changes: 2 additions & 0 deletions api/client/informers/externalversions/generic.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions api/client/listers/victoriametrics/v1beta1/vmscrapeconfig.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0500abb

Please sign in to comment.