You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sending metrics into the storage
with one main config telegraf.conf
telegraf/telegraf.conf
The config with some global tags.. Global tags can help with making CI/CD processes
# Global tags can be specified here in key="value" format.
[global_tags]
# dc = "us-east-1" # will tag all metrics with dc=us-east-1
# rack = "1a"
## Environment variables can be used as tags, and throughout the config file
# user = "$USER"
GITHUB_EVENT_NAME = "$GITHUB_EVENT_NAME"
GITHUB_JOB = "$GITHUB_JOB"
GITHUB_RUN_URL = "$GITHUB_RUN_URL"
GITHUB_WORKFLOW = "$GITHUB_WORKFLOW"
GITHUB_RUN_ID = "$GITHUB_RUN_ID"
TEST_NAME = "$TEST_NAME"
# Configuration for telegraf agent
[agent]
## Default data collection interval for all inputs
interval = "20s"
## Rounds collection interval to 'interval'
## ie, if interval="10s" then always collect on :00, :10, :20, etc.
round_interval = false
## Telegraf will send metrics to outputs in batches of at most
## metric_batch_size metrics.
## This controls the size of writes that Telegraf sends to output plugins.
metric_batch_size = 1000
## Maximum number of unwritten metrics per output. Increasing this value
## allows for longer periods of output downtime without dropping metrics at the
## cost of higher maximum memory usage.
metric_buffer_limit = 100000
# Accept metrics over InfluxDB 2.x HTTP API
[[inputs.influxdb_listener]]
## Address and port to host InfluxDB listener on
service_address = ":8087"
parser_type = "upstream"
[inputs.influxdb_listener.tags]
influxdb_backet = "x2i_gatling"
Hi @polarnik, thanks for this valuable information! Apologies for the late reply.
Please let us know what is expected outcome of this issue. For instance, do you propose to add this as additional documentation and possibly add example template nginx configs to the project? Or should x2i be updated to cater for better integration in these chains?
Hello!
I'm using nginx as a metric proxy.
Telegraf
The chain is: x2i => nginx:8088 => telegraf:8087 => influxdb2/influxdb1:8086
nginx.conf
There is a basic config for the telegraf tool:
In the telegraf we can use two plugins:
with one main config telegraf.conf
telegraf/telegraf.conf
The config with some global tags.. Global tags can help with making CI/CD processes
telegraf/telegraf.d/inputs.influxdb_listener.8087.x2i_gatling.conf
The input config
telegraf/telegraf.d/outputs.influxdb_v2.many-buckets.conf
The output config
In this case telegraf uses a simpe influxdb output. It works well for low and medium workload 0-300 RPS.
For high workload 1000+ RPS we can use other outputs:
with inputs:
The chain will be:
And we can use x2i for static files, without an online metric sending:
Victoria Metrics
We can use Victoria Metrics as well.
The chain is: x2i => nginx:8086 => victoria-metrics:8428
nginx.conf
In this case we will use PromQL or MetricsQL for making a report in Grafana
InfluxDB 2
We can use InfluxDB 2.0 as well
The chain is: x2i => influxdb2:8086
We can create an influxdb 2 bucket, and create an influxdb v1 login/password for the bucket:
The endpoints /query and /write are working well:
The endpoint /ping is working well:
The text was updated successfully, but these errors were encountered: