-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
content/en/docs/usage/quick-start.md → .../usage/quick-start-external-datasource.md
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: "Quick Start(Starting from agent)" | ||
date: 2020-10-06T08:48:57+00:00 | ||
lastmod: 2020-10-06T08:48:57+00:00 | ||
draft: false | ||
images: [] | ||
menu: | ||
docs: | ||
parent: "usage" | ||
weight: 200 | ||
toc: true | ||
--- | ||
|
||
## Configure Pushgw.Writers | ||
|
||
Configure Pushgw.Writers in [config.toml](https://github.com/ccfos/nightingale/blob/main/etc/config.toml#L150). The default configuration is as follows: | ||
|
||
```toml | ||
[[Pushgw.Writers]] | ||
# Url = "http://127.0.0.1:8480/insert/0/prometheus/api/v1/write" | ||
Url = "http://127.0.0.1:9090/api/v1/write" | ||
... | ||
``` | ||
|
||
Make sure that the Url is `prometheus remote write` api address. | ||
|
||
|
||
## Install agent | ||
|
||
We recommand you to use [Categraf](/docs/agent/categraf/) as agent collector. Categraf can receive monitoring data as well as heartbeat requests. | ||
|
||
Then start Categraf and you're done. | ||
|
||
## Check Host List | ||
|
||
Menu location: `Infrastructure` -> `Host`. You'll see the host list under `All hosts`. | ||
|
||
![20230810104717](https://download.flashcat.cloud/ulric/20230810104717.png) | ||
|
||
## Check Host Metrics | ||
|
||
Menu location: `Metrics` -> `Explorer`. You can use `cpu_usage_active` as promql query to check host metrics. | ||
|
||
## Import dashboards | ||
|
||
Menu location: `Dashboard` -> `Built-in`. You can clone `Linux Host by Categraf` under Linux Category to `Default busi group` then view the data through the dashboard. | ||
|
||
## Import alerting rules | ||
|
||
Menu location: `Monitors` -> `Built-in`. You can clone all the rules under Linux Category to `Default busi group` then alarm will be triggered if any rule is violated. | ||
|
||
![20230810105514](https://download.flashcat.cloud/ulric/20230810105514.png) | ||
|
||
Screenshot of the Active alarms page: | ||
|
||
![20230810105802](https://download.flashcat.cloud/ulric/20230810105802.png) |