Victoriametrics: Add option to load configuration file

Created on 31 Jul 2019  Β·  13Comments  Β·  Source: VictoriaMetrics/VictoriaMetrics

Hello!

I would like to run VictoriaMetrics like a service via systemd (I'm packaging victoriametrics in the fact), but i don't want to change systemd service file every time i want to change some options. I could use unit override but it doesn't look very convenient. So it would be nice to add an option which loads targeted configuration file in simple format, like ini or maybe yaml.

enhancement

Most helpful comment

Π˜Π·Π²ΠΈΠ½ΠΈΡ‚Π΅, я ΠΏΠΎ-русски ΠΎΠΏΠΈΡˆΡƒ.

МногиС ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΠΈ, я ΡƒΠ²Π΅Ρ€Π΅Π½, ΡƒΠΆΠ΅ сСйчас ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡŽΡ‚ Ρ„Π°ΠΉΠ»Ρ‹ с ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Π°ΠΌΠΈ запуска ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ² VM, прописанныС Π² ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Π΅ EnvironmentFile ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΡ… systemd *.service Ρ„Π°ΠΉΠ»ΠΎΠ². И я Ρ‚Π°ΠΊ дСлаю - ΠΏΡ€ΠΈΠΌΠ΅Ρ€ ΠΎΠ΄Π½ΠΎΠ³ΠΎ ΠΈΠ· ΠΌΠΎΠΈΡ… Ρ„Π°ΠΉΠ»ΠΎΠ² ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² для vmagent Π±ΡƒΠ΄Π΅Ρ‚ Π½ΠΈΠΆΠ΅.

Π£ нас ΡƒΠΆΠ΅ сСйчас Π΅ΡΡ‚ΡŒ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΈ -rule для vmalert, -promscrape.config ΠΈ -remoteWrite.urlRelabelConfig для vmagent ΠΈ это Π΄Π΅ΠΉΡΡ‚Π²ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎ большиС, Π²Π°ΠΆΠ½Ρ‹Π΅, слоТныС Ρ„Π°ΠΉΠ»Ρ‹ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ.

Π’ Ρ‚ΠΎ ΠΆΠ΅ врСмя, Ρƒ нас Π΅ΡΡ‚ΡŒ большоС число ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² ΠΊΠΎΠΌΠ°Π½Π΄Π½ΠΎΠΉ строки для ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°.
Π”Π°, я помню ваш Π°Ρ€Π³ΡƒΠΌΠ΅Π½Ρ‚, ΠΎ Ρ‚ΠΎΠΌ, Ρ‡Ρ‚ΠΎ всС ΠΎΠ½ΠΈ Π½Π΅ Π½ΡƒΠΆΠ½Ρ‹ Π±ΠΎΠ»ΡŒΡˆΠΈΠ½ΡΡ‚Π²Ρƒ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ - ΠΈΠΌ достаточно ΠΏΡ€ΠΎΠΏΠΈΡΠ°Ρ‚ΡŒ retention для Ρ…Ρ€Π°Π½ΠΈΠ»ΠΈΡ‰Π° ΠΈ список Ρ‚Π°Ρ€Π³Π΅Ρ‚ΠΎΠ².

Но, ΠΊΠ°ΠΊ ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚ ΠΏΡ€Π°ΠΊΡ‚ΠΈΠΊΠ° (https://github.com/VictoriaMetrics/VictoriaMetrics/issues/576), ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ -remoteWrite.* Ρ‚ΠΎΠΆΠ΅ ΠΌΠΎΠ³ΡƒΡ‚ Π±Ρ‹Ρ‚ΡŒ большим ΠΈ слоТным Π½Π°Π±ΠΎΡ€ΠΎΠΌ ΠΊΠ»ΡŽΡ‡Π΅ΠΉ, Π² ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΌ ΠΌΠΎΠΆΠ½ΠΎ Π·Π°ΠΏΡƒΡ‚Π°Ρ‚ΡŒΡΡ. Π’ Ρ‚ΠΎ ΠΆΠ΅ врСмя, я ΡΡ‡ΠΈΡ‚Π°ΡŽ костылём-ΠΏΠΎΠ»ΡƒΠΌΠ΅Ρ€ΠΎΠΉ Π΄Π΅Π»Π°Ρ‚ΡŒ ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹ΠΉ ΠΊΠΎΠ½Ρ„ΠΈΠ³ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ лишь для ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² -remoteWrite.*.

Π― ΡΡ‡ΠΈΡ‚Π°ΡŽ, Ρ‡Ρ‚ΠΎ ΠΈΠΌΠ΅Π΅Ρ‚ смысл ΠΈ ΠΏΡ€ΠΈΡˆΠ»ΠΎ врСмя всС ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ всСх ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ² vm* вынСсти Π² ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» ΠΈ Π·Π°ΠΏΡƒΡΠΊΠ°Ρ‚ΡŒ ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ с СдинствСнным ΠΊΠ»ΡŽΡ‡ΠΎΠΌ --config=.
Π­Ρ‚ΠΎ ΠΏΠΎΠ·Π²ΠΎΠ»ΠΈΡ‚ ΡΡ‚Ρ€ΡƒΠΊΡ‚ΡƒΡ€ΠΈΡ€ΠΎΠ²Π°Ρ‚ΡŒ ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ Π²Π½ΡƒΡ‚Ρ€ΠΈ Ρ„Π°ΠΉΠ»Π°, ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ ΠΈΡ… Π±ΠΎΠ»Π΅Π΅ понятными ΠΈ наглядными, ΠΈΠ·Π±Π΅ΠΆΠ°Ρ‚ΡŒ мноТСства ошибок.

И Π΄Π°, Ρƒ ΠΎΠ΄Π½ΠΈΡ… ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ содСрТимоС ΠΊΠΎΠ½Ρ„ΠΈΠ³Π° Π±ΡƒΠ΄Π΅Ρ‚ ΡΠΎΡΡ‚ΠΎΡΡ‚ΡŒ ΠΈΠ· Π΄Π²ΡƒΡ…-Ρ‚Ρ€Π΅Ρ… ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ², Π° Ρƒ ΠΊΠΎΠ³ΠΎ-Ρ‚ΠΎ Π±ΡƒΠ΄ΡƒΡ‚ простыни. Но ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΈ Π±ΡƒΠ΄ΡƒΡ‚ понятными ΠΈ Π»ΠΎΠ³ΠΈΡ‡Π½Ρ‹ΠΌΠΈ ΠΈ для Ρ‚Π΅Ρ… ΠΈ для Π΄Ρ€ΡƒΠ³ΠΈΡ….

Π£ мСня, практичСски домашнСго ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ, ΠΊΠΎΠ½Ρ„ΠΈΠ³ vmagent состоит ΠΈΠ· 15 ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² (ΠΏΡ€ΠΈΠΌΠ΅Ρ€ Π½ΠΈΠΆΠ΅), ΠΊΠΎΠ½Ρ„ΠΈΠ³ vmalert - ΠΈΠ· 6 ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ², ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΈ Π½ΠΎΠ΄ - ΠΈΠ· 9 ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ.

OPTIONS="                                                 \
  -httpListenAddr=127.0.0.1:8429                          \
  -loggerOutput=stdout                                    \
  -memory.allowedPercent=10                               \
  -promscrape.config.strictParse=1                        \
  -promscrape.config=/.../targets.yaml                    \
  -promscrape.disableCompression=1                        \
  -remoteWrite.maxDiskUsagePerURL=10000000000             \
  -remoteWrite.showURL=1                                  \
  -remoteWrite.tmpDataPath=/.../vmagent                   \
  -remoteWrite.url=http://127.0.0.1:8428/api/v1/write     \
  -remoteWrite.url=http://127.0.0.1:8427/api/v1/write     \
  -remoteWrite.url=http://127.0.0.1:8426/api/v1/write     \
  -remoteWrite.urlRelabelConfig=/.../filters/system.yaml  \
  -remoteWrite.urlRelabelConfig=/.../filters/etc.yaml     \
  -remoteWrite.urlRelabelConfig=/.../filters/testing.yaml \
"

All 13 comments

Hi @KawaiDesu,
I packaged VictoriaMetrics too, you can solve the problem by using the systemd EnvironmentFile option:

cat /lib/systemd/system/victoria-metrics.service
[Unit]
Description=Prometheus :: victoria-metrics
Requires=basic.target network.target
After=basic.target network.target
Documentation=https://github.com/VictoriaMetrics/VictoriaMetrics
[Service]
User=nobody
Group=nogroup
EnvironmentFile=/etc/default/victoria-metrics-prod
ExecStart=/usr/bin/victoria-metrics-prod $ARGS
ExecStop=/bin/kill -s SIGTERM $MAINPID

[Install]
WantedBy=default.target

cat /etc/default/victoria-metrics-prod
ARGS=-retentionPeriod=24 -storageDataPath /var/lib/victoria-metrics/data

Just edit the options in /etc/default/victoria-metrics-prod and restart the service.

I would like to run VictoriaMetrics like a service via systemd (I'm packaging victoriametrics in the fact)

There are package scripts for deb and rpm inside package folder. These scripts are called from Makefile build rules defined in app/victoria-metrics/Makefile. Probably, you could base your packaging scripts on the code inside package folder.

i don't want to change systemd service file every time i want to change some options. I could use unit override but it doesn't look very convenient. So it would be nice to add an option which loads targeted configuration file in simple format, like ini or maybe yaml.

Agreed. Will think about the implementation for this feature. Something like accepting -configFile arg with path to ini file where command-line flags may be set.

@oOHenry , thanks for the solution! I'm unfamiliar with systemd and packaging for various Linux distros, so your insights are very valuable. Could you inspect the pacakge folder contents and help maintaining it together with the original authors of this folder @patsevanton and @kmansoft ?

@KawaiDesu , just a reference on how to use EnvironmentFile option for loading command-line args - https://coreos.com/os/docs/latest/using-environment-variables-in-systemd-units.html#environmentfile-directive .

Why not implement a config file like /etc/victoria-metrics.conf?

Also it makes admin tasks a lot easier if you also support config file snippets in a directory like /etc/victoria-metrics.d which take priority over the .conf file.

This way the packages can include the .conf with a "standard" configuration - and users can override what they want / need using the .d directory. Upgrades then will overwrite the .conf because it won't be modified but the .d files if any will persist.

@valyala where store config file?
/etc/default/victoria-metrics-prod or /etc/default/victoria-metrics.conf or /etc/victoria-metrics.conf?

@valyala where store config file?

/etc/victoria-metrics.conf looks fine to me

Personally, I wouldn't recommend to use /etc/.
Archwiki states the following:

/etc | System-essential configuration files
/etc/{pkg} | Configuration files for {pkg}

https://wiki.archlinux.org/index.php/Arch_package_guidelines#Directories

FHS 3.0 statement about /etc/ is close to Archs one, but more general:

The /etc hierarchy contains configuration files. A "configuration file" is a local file used to control the operation of a program; it must be static and cannot be an executable binary. [2]
It is recommended that files be stored in subdirectories of /etc rather than directly in /etc.

https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s07.html

So, please, use /etc/victoriametrics/victoriametrics.conf or /etc/victoria-metrics/victoria-metrics.conf. Use one that matches package name with or without hypen. I use without because of repository name.

@oOHenry thanks for suggestion with EnvironmentFile. This is nice workaround while cli option is not yet implemented.
@valyala thanks for reference link.

@valyala /etc/victoria-metrics.conf or /etc/victoriametrics/victoriametrics.conf

@valyala A dedicated configuration file might be useful to hide the passwords displayed in the command line (for example with the option httpAuth.password).

FYI, VictoriaMetrics accepts config args via command-line flags starting from v1.34.0. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/311 and these docs for details.

Π˜Π·Π²ΠΈΠ½ΠΈΡ‚Π΅, я ΠΏΠΎ-русски ΠΎΠΏΠΈΡˆΡƒ.

МногиС ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΠΈ, я ΡƒΠ²Π΅Ρ€Π΅Π½, ΡƒΠΆΠ΅ сСйчас ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΡŽΡ‚ Ρ„Π°ΠΉΠ»Ρ‹ с ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Π°ΠΌΠΈ запуска ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ² VM, прописанныС Π² ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Π΅ EnvironmentFile ΡΠΎΠΎΡ‚Π²Π΅Ρ‚ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΡ… systemd *.service Ρ„Π°ΠΉΠ»ΠΎΠ². И я Ρ‚Π°ΠΊ дСлаю - ΠΏΡ€ΠΈΠΌΠ΅Ρ€ ΠΎΠ΄Π½ΠΎΠ³ΠΎ ΠΈΠ· ΠΌΠΎΠΈΡ… Ρ„Π°ΠΉΠ»ΠΎΠ² ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² для vmagent Π±ΡƒΠ΄Π΅Ρ‚ Π½ΠΈΠΆΠ΅.

Π£ нас ΡƒΠΆΠ΅ сСйчас Π΅ΡΡ‚ΡŒ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΈ -rule для vmalert, -promscrape.config ΠΈ -remoteWrite.urlRelabelConfig для vmagent ΠΈ это Π΄Π΅ΠΉΡΡ‚Π²ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎ большиС, Π²Π°ΠΆΠ½Ρ‹Π΅, слоТныС Ρ„Π°ΠΉΠ»Ρ‹ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ.

Π’ Ρ‚ΠΎ ΠΆΠ΅ врСмя, Ρƒ нас Π΅ΡΡ‚ΡŒ большоС число ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² ΠΊΠΎΠΌΠ°Π½Π΄Π½ΠΎΠΉ строки для ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Π°.
Π”Π°, я помню ваш Π°Ρ€Π³ΡƒΠΌΠ΅Π½Ρ‚, ΠΎ Ρ‚ΠΎΠΌ, Ρ‡Ρ‚ΠΎ всС ΠΎΠ½ΠΈ Π½Π΅ Π½ΡƒΠΆΠ½Ρ‹ Π±ΠΎΠ»ΡŒΡˆΠΈΠ½ΡΡ‚Π²Ρƒ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ - ΠΈΠΌ достаточно ΠΏΡ€ΠΎΠΏΠΈΡΠ°Ρ‚ΡŒ retention для Ρ…Ρ€Π°Π½ΠΈΠ»ΠΈΡ‰Π° ΠΈ список Ρ‚Π°Ρ€Π³Π΅Ρ‚ΠΎΠ².

Но, ΠΊΠ°ΠΊ ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚ ΠΏΡ€Π°ΠΊΡ‚ΠΈΠΊΠ° (https://github.com/VictoriaMetrics/VictoriaMetrics/issues/576), ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ -remoteWrite.* Ρ‚ΠΎΠΆΠ΅ ΠΌΠΎΠ³ΡƒΡ‚ Π±Ρ‹Ρ‚ΡŒ большим ΠΈ слоТным Π½Π°Π±ΠΎΡ€ΠΎΠΌ ΠΊΠ»ΡŽΡ‡Π΅ΠΉ, Π² ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΌ ΠΌΠΎΠΆΠ½ΠΎ Π·Π°ΠΏΡƒΡ‚Π°Ρ‚ΡŒΡΡ. Π’ Ρ‚ΠΎ ΠΆΠ΅ врСмя, я ΡΡ‡ΠΈΡ‚Π°ΡŽ костылём-ΠΏΠΎΠ»ΡƒΠΌΠ΅Ρ€ΠΎΠΉ Π΄Π΅Π»Π°Ρ‚ΡŒ ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹ΠΉ ΠΊΠΎΠ½Ρ„ΠΈΠ³ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ лишь для ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² -remoteWrite.*.

Π― ΡΡ‡ΠΈΡ‚Π°ΡŽ, Ρ‡Ρ‚ΠΎ ΠΈΠΌΠ΅Π΅Ρ‚ смысл ΠΈ ΠΏΡ€ΠΈΡˆΠ»ΠΎ врСмя всС ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ всСх ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ² vm* вынСсти Π² ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» ΠΈ Π·Π°ΠΏΡƒΡΠΊΠ°Ρ‚ΡŒ ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ с СдинствСнным ΠΊΠ»ΡŽΡ‡ΠΎΠΌ --config=.
Π­Ρ‚ΠΎ ΠΏΠΎΠ·Π²ΠΎΠ»ΠΈΡ‚ ΡΡ‚Ρ€ΡƒΠΊΡ‚ΡƒΡ€ΠΈΡ€ΠΎΠ²Π°Ρ‚ΡŒ ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Ρ‹ Π²Π½ΡƒΡ‚Ρ€ΠΈ Ρ„Π°ΠΉΠ»Π°, ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ ΠΈΡ… Π±ΠΎΠ»Π΅Π΅ понятными ΠΈ наглядными, ΠΈΠ·Π±Π΅ΠΆΠ°Ρ‚ΡŒ мноТСства ошибок.

И Π΄Π°, Ρƒ ΠΎΠ΄Π½ΠΈΡ… ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΉ содСрТимоС ΠΊΠΎΠ½Ρ„ΠΈΠ³Π° Π±ΡƒΠ΄Π΅Ρ‚ ΡΠΎΡΡ‚ΠΎΡΡ‚ΡŒ ΠΈΠ· Π΄Π²ΡƒΡ…-Ρ‚Ρ€Π΅Ρ… ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ², Π° Ρƒ ΠΊΠΎΠ³ΠΎ-Ρ‚ΠΎ Π±ΡƒΠ΄ΡƒΡ‚ простыни. Но ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΈ Π±ΡƒΠ΄ΡƒΡ‚ понятными ΠΈ Π»ΠΎΠ³ΠΈΡ‡Π½Ρ‹ΠΌΠΈ ΠΈ для Ρ‚Π΅Ρ… ΠΈ для Π΄Ρ€ΡƒΠ³ΠΈΡ….

Π£ мСня, практичСски домашнСго ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ, ΠΊΠΎΠ½Ρ„ΠΈΠ³ vmagent состоит ΠΈΠ· 15 ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² (ΠΏΡ€ΠΈΠΌΠ΅Ρ€ Π½ΠΈΠΆΠ΅), ΠΊΠΎΠ½Ρ„ΠΈΠ³ vmalert - ΠΈΠ· 6 ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ², ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΈ Π½ΠΎΠ΄ - ΠΈΠ· 9 ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€ΠΎΠ² ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ.

OPTIONS="                                                 \
  -httpListenAddr=127.0.0.1:8429                          \
  -loggerOutput=stdout                                    \
  -memory.allowedPercent=10                               \
  -promscrape.config.strictParse=1                        \
  -promscrape.config=/.../targets.yaml                    \
  -promscrape.disableCompression=1                        \
  -remoteWrite.maxDiskUsagePerURL=10000000000             \
  -remoteWrite.showURL=1                                  \
  -remoteWrite.tmpDataPath=/.../vmagent                   \
  -remoteWrite.url=http://127.0.0.1:8428/api/v1/write     \
  -remoteWrite.url=http://127.0.0.1:8427/api/v1/write     \
  -remoteWrite.url=http://127.0.0.1:8426/api/v1/write     \
  -remoteWrite.urlRelabelConfig=/.../filters/system.yaml  \
  -remoteWrite.urlRelabelConfig=/.../filters/etc.yaml     \
  -remoteWrite.urlRelabelConfig=/.../filters/testing.yaml \
"
Was this page helpful?
0 / 5 - 0 ratings

Related issues

valyala picture valyala  Β·  4Comments

sh0rez picture sh0rez  Β·  3Comments

pmitra43 picture pmitra43  Β·  3Comments

genericgithubuser picture genericgithubuser  Β·  4Comments

prdatur picture prdatur  Β·  3Comments