Hi,
I am passing all the collected metrics from JVM to jvmstats and Docker Metrics to dockerstats which is hosted on same Influxdb instance. Below are my configurations: I am facing below issues:
- If I say SHOW MEASUREMENTS on dockerstats it is empty. But in jvmstats it shows all including docker measurements
- Only docker metrics make out to the dockerstats or I can do the same using jvmstats as the measurements are available here.
- JVM metrics is getting dropped or not made it to the database.
###############################################################################
OUTPUTS - JVM
###############################################################################
Configuration for influxdb server to send metrics to
[[outputs.influxdb]]
The full HTTP or UDP endpoint URL for your InfluxDB instance.
Multiple urls can be specified as part of the same cluster,
this means that only ONE of the urls will be written to each interval.
urls = [“udp://localhost:8089”] # UDP endpoint example
urls = [“http://HOST:PORT”] # required
The target database for metrics (telegraf will create it if not exists).
database = “jvmstats” # required
Retention policy to write to.
retention_policy = “”
Precision of writes, valid values are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.
note: using “s” precision greatly improves InfluxDB compression.
precision = “s”
Write timeout (for the InfluxDB client), formatted as a string.
If not provided, will default to 5s. 0s means no timeout (not recommended).
timeout = “5s”
username = “admin”
password = “admin”
Set the user agent for HTTP POSTs (can be useful for log differentiation)
user_agent = “telegraf”
Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes)
udp_payload = 512
Optional SSL Config
ssl_ca = “/etc/telegraf/ca.pem”
ssl_cert = “/etc/telegraf/cert.pem”
ssl_key = “/etc/telegraf/key.pem”
Use SSL but skip chain & host verification
insecure_skip_verify = false
namedrop = [“container_*”,“docker_”,“engine”]
###############################################################################
OUTPUTS - Docker
###############################################################################
Configuration for influxdb server to send metrics to
[[outputs.influxdb]]
The full HTTP or UDP endpoint URL for your InfluxDB instance.
Multiple urls can be specified as part of the same cluster,
this means that only ONE of the urls will be written to each interval.
urls = [“udp://localhost:8089”] # UDP endpoint example
urls = [“http://HOST:PORT”] # required
The target database for metrics (telegraf will create it if not exists).
database = “dockerstats” # required
Retention policy to write to.
retention_policy = “”
Precision of writes, valid values are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.
note: using “s” precision greatly improves InfluxDB compression.
precision = “s”
Write timeout (for the InfluxDB client), formatted as a string.
If not provided, will default to 5s. 0s means no timeout (not recommended).
timeout = “5s”
username = “admin”
password = “admin”
Set the user agent for HTTP POSTs (can be useful for log differentiation)
user_agent = “telegraf”
Set UDP payload size, defaults to InfluxDB UDP Client default (512 bytes)
udp_payload = 512
Optional SSL Config
ssl_ca = “/etc/telegraf/ca.pem”
ssl_cert = “/etc/telegraf/cert.pem”
ssl_key = “/etc/telegraf/key.pem”
Use SSL but skip chain & host verification
insecure_skip_verify = false
namedrop = [“jolokia*”]
Any help is appreciated.
Thanks in advance
Karthik