2024-09-03T16:33:42.187Z info VictoriaMetrics/lib/logger/flag.go:12 build version: victoria-metrics-20240828-135248-tags-v1.103.0-0-g5aeb759df9
2024-09-03T16:33:42.187Z info VictoriaMetrics/lib/logger/flag.go:13 command-line flags
2024-09-03T16:33:42.187Z info VictoriaMetrics/lib/logger/flag.go:20 -retentionPeriod="30d"
2024-09-03T16:33:42.187Z info VictoriaMetrics/lib/logger/flag.go:20 -selfScrapeInterval="10s"
2024-09-03T16:33:42.187Z info VictoriaMetrics/lib/logger/flag.go:20 -storageDataPath="/usr/data/victoria-metrics"
2024-09-03T16:33:42.187Z info VictoriaMetrics/app/victoria-metrics/main.go:73 starting VictoriaMetrics at "[:8428]"...
2024-09-03T16:33:42.187Z info VictoriaMetrics/app/vmstorage/main.go:107 opening storage at "/usr/data/victoria-metrics" with -retentionPeriod=30d
2024-09-03T16:33:42.189Z info VictoriaMetrics/lib/memory/memory.go:42 limiting caches to 611758080 bytes, leaving 407838720 bytes to the OS according to -memory.allowedPercent=60
2024-09-03T16:33:42.205Z info VictoriaMetrics/app/vmstorage/main.go:121 successfully opened storage "/usr/data/victoria-metrics" in 0.018 seconds; partsCount: 0; blocksCount: 0; rowsCount: 0; sizeBytes: 0
2024-09-03T16:33:42.205Z info VictoriaMetrics/app/vmselect/promql/rollup_result_cache.go:127 loading rollupResult cache from "/usr/data/victoria-metrics/cache/rollupResult"...
2024-09-03T16:33:42.207Z info VictoriaMetrics/app/vmselect/promql/rollup_result_cache.go:156 loaded rollupResult cache from "/usr/data/victoria-metrics/cache/rollupResult" in 0.001 seconds; entriesCount: 0, sizeBytes: 0
2024-09-03T16:33:42.207Z info VictoriaMetrics/app/victoria-metrics/main.go:84 started VictoriaMetrics in 0.020 seconds
2024-09-03T16:33:42.207Z info VictoriaMetrics/lib/httpserver/httpserver.go:121 starting server at http://127.0.0.1:8428/
2024-09-03T16:33:42.207Z info VictoriaMetrics/lib/httpserver/httpserver.go:122 pprof handlers are exposed at http://127.0.0.1:8428/debug/pprof/
2024-09-03T16:33:42.208Z info VictoriaMetrics/app/victoria-metrics/self_scraper.go:46 started self-scraping `/metrics` page with interval 10.000 seconds
2024-09-03T16:33:52.293Z info VictoriaMetrics/lib/storage/partition.go:202 creating a partition "2024_09" with smallPartsPath="/usr/data/victoria-metrics/data/small/2024_09", bigPartsPath="/usr/data/victoria-metrics/data/big/2024_09"
2024-09-03T16:33:52.295Z info VictoriaMetrics/lib/storage/partition.go:211 partition "2024_09" has been created
利用远程写入增加 Prometheus 约25%的内存利用率,这取决于数据形态(原文:Using remote write increases memory usage for Prometheus up to ~25% and depends on the shape of data)。如果你正面对太高内存消耗的题目,尝试低落 max_samples_per_send 和 capacity 参数配置值(留意:这两个参数是紧密相连的)检察更多关于远程写入调优.
建议升级Prometheus到 v2.12.0 或更高,因为之前版本利用 remote_write存在题目。
也可以检察下 vmagent 和 vmalert, 也是用于减少Prometheus更快和更少的资源消耗的一种选择方案。
参考链接:https://docs.victoriametrics.com/#prometheus-setup
创建服务
ts=2024-09-04T16:01:28.242Z caller=node_exporter.go:196 level=warn msg="Node Exporter is running as root user. This exporter is designed to run as unprivileged user, root is not required."
ts=2024-09-04T16:01:28.242Z caller=filesystem_common.go:111 level=info collector=filesystem msg="Parsed flag --collector.filesystem.mount-points-exclude" flag=^/(dev|proc|run/credentials/.+|sys|var/lib/docker/.+|var/lib/containers/storage/.+)($|/)
ts=2024-09-04T16:01:28.242Z caller=filesystem_common.go:113 level=info collector=filesystem msg="Parsed flag --collector.filesystem.fs-types-exclude" flag=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$
ts=2024-09-04T16:01:28.242Z caller=diskstats_common.go:111 level=info collector=diskstats msg="Parsed flag --collector.diskstats.device-exclude" flag=^(z?ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\d+n\d+p)\d+$