diff --git a/README.md b/README.md index f7833e1d0..0cfef66c3 100644 --- a/README.md +++ b/README.md @@ -2117,6 +2117,8 @@ Pass `-help` to VictoriaMetrics in order to see the list of supported command-li Whether to suppress scrape errors logging. The last error for each target is always available at '/targets' page even if scrape errors logging is suppressed. See also -promscrape.suppressScrapeErrorsDelay -promscrape.suppressScrapeErrorsDelay duration The delay for suppressing repeated scrape errors logging per each scrape targets. This may be used for reducing the number of log lines related to scrape errors. See also -promscrape.suppressScrapeErrors + -promscrape.yandexcloudSDCheckInterval duration + Interval for checking for changes in Yandex Cloud. This works only if yandexcloud_sd_configs is configured in '-promscrape.config' file. (default 30s) -pushmetrics.extraLabel array Optional labels to add to metrics pushed to -pushmetrics.url . For example, -pushmetrics.extraLabel='instance="foo"' adds instance="foo" label to all the metrics pushed to -pushmetrics.url Supports an array of values separated by comma or specified via multiple flags. diff --git a/app/vmagent/README.md b/app/vmagent/README.md index 25297e427..08901dbdb 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -1079,6 +1079,8 @@ See the docs at https://docs.victoriametrics.com/vmagent.html . Whether to suppress scrape errors logging. The last error for each target is always available at '/targets' page even if scrape errors logging is suppressed. See also -promscrape.suppressScrapeErrorsDelay -promscrape.suppressScrapeErrorsDelay duration The delay for suppressing repeated scrape errors logging per each scrape targets. This may be used for reducing the number of log lines related to scrape errors. See also -promscrape.suppressScrapeErrors + -promscrape.yandexcloudSDCheckInterval duration + Interval for checking for changes in Yandex Cloud. This works only if yandexcloud_sd_configs is configured in '-promscrape.config' file. (default 30s) -pushmetrics.extraLabel array Optional labels to add to metrics pushed to -pushmetrics.url . For example, -pushmetrics.extraLabel='instance="foo"' adds instance="foo" label to all the metrics pushed to -pushmetrics.url Supports an array of values separated by comma or specified via multiple flags. diff --git a/docs/README.md b/docs/README.md index f7833e1d0..16edc70a3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -326,6 +326,7 @@ VictoriaMetrics can be used as drop-in replacement for Prometheus for scraping t * [eureka_sd_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#eureka_sd_config) * [digitalocean_sd_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#digitalocean_sd_config) * [http_sd_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_sd_config) +* [yandexcloud_sd_config](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/docs/sd_configs.md#yandex_cloud_service_discovery_config) File a [feature request](https://github.com/VictoriaMetrics/VictoriaMetrics/issues) if you need support for other `*_sd_config` types. diff --git a/docs/sd_configs.md b/docs/sd_configs.md new file mode 100644 index 000000000..b420658a3 --- /dev/null +++ b/docs/sd_configs.md @@ -0,0 +1,46 @@ +## Yandex Cloud Service Discovery Configs + +Yandex Cloud SD configurations allow retrieving scrape targets from accessible folders. + +Only compute instances currently supported and the following meta labels are available on targets during relabeling: + +* `__meta_yandexcloud_instance_name`: the name of instance +* `__meta_yandexcloud_instance_id`: the id of instance +* `__meta_yandexcloud_instance_fqdn`: generated FQDN for instance +* `__meta_yandexcloud_instance_status`: the status of instance +* `__meta_yandexcloud_instance_platform_id`: instance platform ID (i.e. "standard-v3") +* `__meta_yandexcloud_instance_resources_cores`: instance vCPU cores +* `__meta_yandexcloud_instance_resources_core_fraction`: instance core fraction +* `__meta_yandexcloud_instance_resources_memory`: instance memory +* `__meta_yandexcloud_folder_id`: instance folder ID +* `__meta_yandexcloud_instance_label_