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

Automated cherry pick of #78: fix(build): warn broken links #79

Merged
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
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
organizationName: 'yunionio', // Usually your GitHub org/user name.
projectName: 'cloudpods', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',

// Even if you don't use internationalization, you can use this field to set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,34 @@ The platform now supports storing monitoring data in either VictoriaMetrics or I

Regarding the switch from InfluxDB to VictoriaMetrics, refer to the document: [Switching from InfluxDB to VictoriaMetrics](../../operations/monitoring/migrating-to-vm.md).

### Querying VictoriaMetrics Data
### Querying VictoriaMetrics Data {#query-victoric-metrics-data}

If you use VictoriaMetrics as the monitoring backend, you can access the VictoriaMetrics frontend web interface through `https://control-node-IP:30428/vmui/`. VictoriaMetrics uses MetricsQL query syntax, please refer to the following documents for specific usage:


```bash
# Query CPU usage_active metrics
cpu_usage_active

# Query the disk free metric and filter it to host_id="32d41926-6038-42a3-8a31-40c08274823b"
disk_free{host_id="32d41926-6038-42a3-8a31-40c08274823b"}

# Query the disk free indicator, filter by device="sda2", path="/opt/cloud"
disk_free{device="sda2",path="/opt/cloud"}

# Query metrics starting with mem_
{__name__=~"mem_.*"}

# Query the mem used metric, and use the regular expression host=~"ha-test0[1,2].*"
mem_used{host=~"ha-test0[1,2].*"}
```

For more information, please refer to the following documentation:

- [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html)

- The following is a description of the telegraf for reporting monitoring metrics:

:::tip
Currently, the format for reporting monitoring data is InfluxDB line format. When monitoring metrics are sent to VictoriaMetrics, they will be automatically converted to the corresponding format.

Expand Down