Created
January 4, 2019 19:33
-
-
Save crablab/3e94792165316daa222a29d98ada3a9b to your computer and use it in GitHub Desktop.
A telegraf config to be used with Grafana dashboard 5063. Requires additional config on server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OUTPUTS | |
| [outputs] | |
| [outputs.influxdb] | |
| # The full HTTP endpoint URL for your InfluxDB instance | |
| url = "http://192.168.1.67:8086" | |
| # The target database for metrics. This database must already exist | |
| database = "nginx" | |
| # PLUGINS | |
| # Read metrics about cpu usage | |
| [[inputs.cpu]] | |
| ## Whether to report per-cpu stats or not | |
| percpu = true | |
| ## Whether to report total system cpu stats or not | |
| totalcpu = true | |
| ## If true, collect raw CPU time metrics. | |
| collect_cpu_time = false | |
| ## If true, compute and report the sum of all non-idle CPU states. | |
| report_active = false | |
| # Read metrics about memory usage | |
| [[inputs.mem]] | |
| # no configuration | |
| # Read metrics about system load & uptime | |
| [[inputs.system]] | |
| # no configuration | |
| [[inputs.nginx]] | |
| urls = ["http://localhost/nginx_status"] | |
| [[inputs.logparser]] | |
| files = ["/var/log/nginx/access.log"] | |
| from_beginning = true | |
| name_override = "nginx_access_log" | |
| [inputs.logparser.grok] | |
| patterns = ["%{COMBINED_LOG_FORMAT}"] | |
| # Gather metrics about network interfaces | |
| [[inputs.net]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment