Skip to main content

Grafana

The open platform for beautiful analytics and monitoring (open source software for time series analytics) (Expression browser)

  • 40 data sources
    • Graphite
    • Cloud watch
    • Prometheus
    • Elastic search
    • InfluxDB (TICK Stack)
    • Hosted Metrics
  • 28 panels
  • 17 apps
  • 776 dashboards
docker run --rm --name=grafana --net=influxdb -p 3000:3000 grafana/grafana
docker run --rm --name=grafana -p 3000:3000 grafana/grafana

Dashboards

Env

GF_AUTH_ANONYMOUS_ENABLED: true
GF_AUTH_ANONYMOUS_ORG_ROLE: Editor
GF_AUTH_BASIC_ENABLED: false
GF_SERVER_ENABLE_GZIP: true
GF_SERVER_ROOT_URL: ""
GF_EXTERNAL_IMAGE_STORAGE_PROVIDER: "s3"
GF_EXTERNAL_IMAGE_STORAGE_S3_ACCESS_KEY: "XXX"
GF_EXTERNAL_IMAGE_STORAGE_S3_BUCKET: "bucket"
GF_EXTERNAL_IMAGE_STORAGE_S3_REGION: "region"
GF_EXTERNAL_IMAGE_STORAGE_S3_SECRET_KEY: "XXX"
GF_PANELS_DISABLE_SANITIZE_HTML: true

Concepts

Data Source

Grafana supports many different storage backends for your time series data (Data Source). Each Data Source has a specific Query Editor that is customized for the features and capabilities that the particular Data Source exposes.

The following datasources are officially supported: Graphite, InfluxDB, OpenTSDB, Prometheus, Elasticsearch, CloudWatch.

The query language and capabilities of each Data Source are obviously very different. You can combine data from multiple Data Sources onto a single Dashboard, but each Panel is tied to a specific Data Source that belongs to a particular Organization.

  • Organization
  • User

Row

A Row is a logical divider within a Dashboard, and is used to group Panels together.

Utilize the Repeating Rows functionality to dynamically create or remove entire Rows (that can be filled with Panels), based on the Template variables selected.

Rows can be collapsed by clicking on the Row Title. If you save a Dashboard with a Row collapsed, it will save in that state and will not preload those graphs until the row is expanded.

Panel

The Panel is the basic visualization building block in Grafana. Each Panel provides a Query Editor (dependent on the Data Source selected in the panel) that allows you to extract the perfect visualization to display on the Panel by utilizing the Query Editor

Types of Panel -

  • Graph
  • Singlestat
  • Table
  • Heatmap
  • Alert list
  • Dashboard list
  • Text

Utilize the Repeating Panel functionality to dynamically create or remove Panels based on the Templating Variables selected.

Query Editor

The Query Editor exposes capabilities of your Data Source and allows you to query the metrics that it contains.

Use the Query Editor to build one or more queries (for one or more series) in your time series database. The panel will instantly update allowing you to effectively explore your data in real time and build a perfect query for that particular Panel.

You can utilize Template variables in the Query Editor within the queries themselves. This provides a powerful way to explore data dynamically based on the Templating variables selected on the Dashboard.

Grafana allows you to reference queries in the Query Editor by the row that they're on. If you add a second query to graph, you can reference the first query simply by typing in #A. This provides an easy and convenient way to build compounded queries.

Dashboard

The Dashboard is where it all comes together. Dashboards can be thought of as of a set of one or more Panels organized and arranged into one or more Rows.

The time period for the Dashboard can be controlled by the Dashboard time picker in the upper right of the Dashboard.

Dashboards can utilize Templating to make them more dynamic and interactive.

Dashboards can utilize Annotations to display event data across Panels. This can help correlate the time series data in the Panel with other events.

Dashboards (or a specific Panel) can be Shared easily in a variety of ways. You can send a link to someone who has a login to your Grafana. You can use the Snapshot feature to encode all the data currently being viewed into a static and interactive JSON document; it's so much better than emailing a screenshot!

Dashboards can be tagged, and the Dashboard picker provides quick, searchable access to all Dashboards in a particular Organization.

Advanced

  • Variables
  • Repeating Rows
  • Repeating Panels

Shortcuts

Global
ghGo to Home Dashboard
gpGo to Profile
soOpen search
ssOpen search with starred filter
stOpen search in tags view
escExit edit/setting views
Dashboard
mod+sSave dashboard
drRefresh all panels
dsDashboard settings
dvToggle in-active / view mode
dkToggle kiosk mode (hides top nav)
dEExpand all rows
dCCollapse all rows
daToggle auto fit panels (experimental feature)
mod+oToggle shared graph crosshair
Focused Panel
eToggle panel edit view
vToggle panel fullscreen view
psOpen Panel Share Modal
pdDuplicate Panel
prRemove Panel
plToggle panel legend
Time Range
tzZoom out time range
tMove time range back
tMove time range forward

Plugins

grafana-cli plugins list-remote
grafana-cli plugins install <plugin-id>
grafana-cli plugins install <plugin-id> <version>
grafana-cli plugins ls

http://docs.grafana.org/guides/basic_concepts

https://play.grafana.org/d/ZvPm55mWk/new-features-in-v6-2?orgId=1

https://github.com/grafana/grafana