Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: 当hostname(也即endpoint)存在点号时解析错误 #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

# Installation

### Download prebuild version of grafana official site
[https://grafana.com/grafana/download](https://grafana.com/grafana/download) `Grafana v4.2`
### Download prebuild version of grafana on official site
[https://grafana.com/grafana/download](https://grafana.com/grafana/download) `Grafana v3.0 or newer(test passed on v5.0.3)`

**or you can install grafana via homebrerw:**

Expand All @@ -25,11 +25,19 @@ git clone https://github.com/open-falcon/grafana-openfalcon-datasource
{GRAFANA_PATH_Installed}/bin/grafana-server
```

## After Installation
If you have started grafana-server, you have to restart it after installing plugins.

# After Installation
If the installation is successful, Open-Falcon datasource would be shown as follow:
![](img/openfalcon_datasource.png)

## How to Set up datasource
# How to Set up datasource
* the backend services is provide by [falcon-plus](https://github.com/open-falcon/falcon-plus/tree/master/modules/api).

![](img/setup_grafana.png)

# Work with variables

When you select metrics, you can use variables if you "Toggle Edit Mode", e.g. `$host#mem#memfree#percent` is ok.

![](img/grafana_with_variables.png)
6 changes: 3 additions & 3 deletions datasource.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added img/grafana_with_variables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/openfalcon_datasource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
592 changes: 23 additions & 569 deletions lexer.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions query_ctrl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.