Hello guys!
This is my telegraf configuration
[agent]
interval = "10s"
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
debug = false
quiet = false
logfile = ""
hostname = ""
omit_hostname = false
[[inputs.nginx]]
urls = ["http://127.0.0.1/nginx_status"]
response_timeout = "10s"
[[inputs.tail]]
name_override = "nginx_log"
files = ["/opt/nginx/logs/access.log"]
from_beginning = true
pipe = false
data_format = "grok"
grok_patterns = ["%{NGINX_LOG_FORMAT}"]
grok_custom_pattern_files = []
grok_custom_patterns = '''
NGINX_LOG_FORMAT %{IPORHOST:client_ip} (?:%{USERNAME:auth}|-) \[%{HTTPDATE:timestamp}\] "%{WORD:protocol}" "(?:%{DATA:server_name}|-)" "(?:%{WORD:method}|-) (%{URIPATHPARAM:request}?) (HTTP/%{NUMBER:http_version})\" %{NUMBER:response} (?:%{NUMBER:bytes}|-) "%{DATA:referrer}" "%{DATA:user_agent}" "%{DATA:session_id}" (%{DATA:server})? (?:%{NUMBER:request_time:float}|-) (?:%{NUMBER:upstream_response_time:float}|-)
'''
grok_timezone = "Local"
watch_method = "inotify"
[[processors.converter]]
[processors.converter.fields]
tag = ["server_name"]
[[processors.override]]
namepass = ["nginx_log"]
[processors.override.tags]
host = "Nginx-PRD"
#[[processors.converter]]
# [processors.converter.fields]
# float = ["request_time", "upstream_response_time"]
#[[outputs.prometheus_client]]
# listen = ":9125"
My influxdb contains information about the collection of computer resources, where is it collected from, my telegraf is not configured for collection. And the memory information collected is not quite the same as the parameters I’m actually using.
This is my actual memory usage
Mem: 8061404k total, 7551008k used, 510396k free, 161240k buffers
Use about 7 gigabytes.
The query from influxdb looks like this
758751232
That translates to about 700MB.
What’s it about?