DATA VISUALIZATION & ALERTING WITH GRAFANA
Grafana is the leading graph and dashboard builder for visualizing time series, which is a great tool for visual monitoring of InfluxData. This session will provide an intro to Grafana and talk about adding data sources, creating dashboards and getting the most out of your data visualization. The talk will look into some new features Grafana has to offer, as well as explain why different graphs are important and specifically how you can use them to analyze data performance and troubleshoot operational issues.
2. Who am I?
- Dan Cech
- Platform Services @ Grafana Labs
- Build & operate Grafana.com
- GrafanaCloud
- Hosted Grafana
- Hosted Metrics
- Hack on Grafana!
- @dancech
- github.com/dancech
- Graphite Contributor
3. What is Grafana?
- Open source dashboard & graphing system
- Tool to unify data from multiple TSDBs
- Monitoring and alerting platform
- A great way to visualize data from InfluxDB
4. Getting started with Grafana
- https://grafana.com/get
- Downloads for Linux, Windows & Mac
- docker run -d --name=grafana -p 3000:3000 grafana/grafana
- Free Hosted Grafana
- Hosted Grafana & Support Plans
6. Datasources
- Grafana displays data from TSDBs like InfluxDB
- InfluxDB, Graphite, Elasticsearch, Prometheus, OpenTSDB, CloudWatch,
MySQL, PostgreSQL included by default
- Additional data source plugins at https://grafana.com/plugins
- One-click install on Hosted Grafana
- grafana-cli plugins install mtanda-google-calendar-datasource
7. Adding Datasources
- One data source per InfluxDB
database
- Name accordingly
- Proxy mode recommended
- Min time interval should match
data reporting frequency
8. Adding Dashboards
- Dashboards are the core organizational unit
- Each dashboard is a collection of panels
- Graph
- Singlestat
- Table
- Text
- Heatmap
- Lists: Dashboards, Plugins, Alerts
- More panel plugins at https://grafana.com/plugins
- Same installation as data source plugins
16. Multiple Hosts
- Need to define the dashboard purpose
- Overview of entire fleet?
- Show multiple lines?
- Select & show a single host?
- Different approaches are needed depending on the goal
- Tailor dashboard to the use-case
17. Grouping Data
- Add tag(s) to GROUP BY
- Use tag(s) in ALIAS BY
- Result is a series for each host,
good for alerting
18. Alerting with Grafana
- Alert rules are defined on dashboard graph panels
- Queries are scheduled and executed by grafana-server
- Backends: InfluxDB, Cloudwatch, Graphite, MySQL, OpenTSDB, PostgreSQL
& Prometheus
- Notifiers: Email, Webhook, Kafka, Sensu, PagerDuty, VictorOps, OpsGenie,
HipChat, Slack, Telegram, DingTalk, line.me, Threema & Pushover
32. Democratize Metrics
- Grafana makes it easy to visualize & share
- Empower users to manage their alerts
- Huge library of panels, data sources & apps
- Download and share dashboards
- Bring data together in one place