bingooyong / note

1 stars 1 forks source link

Tomcat Telegraf Influxdb Grafana #21

Open bingooyong opened 4 years ago

bingooyong commented 4 years ago

telegraf config

# Gather metrics from the Tomcat server status page.
[[inputs.tomcat]]
  ## URL of the Tomcat server status
  url = "http://127.0.0.1:8080/manager/status/all?XML=true"

  ## HTTP Basic Auth Credentials
  username = "tomcat"
  password = "s3cret"

  ## Request timeout
  # timeout = "5s"

  ## Optional TLS Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"
  ## Use TLS but skip chain & host verification
  # insecure_skip_verify = false

Grafana Dashboard

bingooyong commented 4 years ago

Grafana 配置导出iFrame权限

修改配置文件 /etc/grafana/grafana.ini configuration

[security]
# set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict" and "none"
cookie_samesite = none

# set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
allow_embedding = true

[auth.anonymous]
# enable anonymous access
enabled = true

重启

systemctl restart grafana-server.service

导入Dashboard Monitoring Java Stack - Tomcat-1571128926759.json.zip