root@DESKTOP-0CU081I:/grafana-6.0.0# tail -f /tmp/mysqld_exporter.log mysqld_exporter: error: unknown short flag '-c', try --help
时间: 2024-03-16 18:41:06 浏览: 27
这是一个错误信息,可能是因为在执行 mysqld_exporter 命令时,使用了一个未知的短选项 -c。建议执行 mysqld_exporter --help 命令,查看可用选项。另外,也可以尝试使用长选项 --config.file 来指定配置文件。例如:
```
mysqld_exporter --config.file=/path/to/config.yml
```
相关问题
在ubuntu20.04下node_exporter, prometheus-2.7.2.linux-amd64, mysqld_exporter-0.10.0.linux-amd64, grafana-6.0.0它们四个启动的顺序
在Ubuntu 20.04下,可以按照以下顺序启动node_exporter、mysqld_exporter、Prometheus和Grafana:
1. 启动node_exporter:
```
./node_exporter &
```
2. 启动mysqld_exporter:
```
./mysqld_exporter --web.disable-authentication=true &
```
注意,这里使用了--web.disable-authentication=true参数来禁用mysqld_exporter的身份验证功能,方便测试使用。在实际生产环境中,建议开启身份验证功能。
3. 启动Prometheus:
```
./prometheus --config.file=prometheus.yml &
```
注意,这里使用了--config.file参数指定了Prometheus的配置文件为prometheus.yml,你需要将该文件放置在Prometheus的安装目录下。
4. 启动Grafana:
```
./bin/grafana-server web &
```
注意,这里使用了./bin/grafana-server命令启动Grafana,你需要进入Grafana的安装目录下才能执行该命令。
按照以上步骤启动后,你就可以通过Grafana的Web界面访问Prometheus,并且使用Prometheus的查询语言来查询和展示各种指标数据了。
ERROR in ./src/main.ts Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
据提供的引用内容,可以看出这是一个关于Vue.js项目构建失败的错误信息。具体来说,错误信息中提到了以下几个问题:
1. Module build failed (from ./node_modules/vue-pdf/node_modules/worker-loader/dist/cjs.js): Error: MainTemplate.hooks.hotBootstrap has been removed (use your own RuntimeModule instead)。
2. Node Sass version 7.0.1 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0。
3. Syntax Error: ModuleError: Module Error (from ./node_modules/sass-loader/dist/cjs.js): Node Sass version 7.0.1 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0。
4. ERROR in ./src/main.ts Module build failed (from ./node_modules/thread-loader/dist/cjs.js):?
针对这些问题,可以采取以下解决方法:
1. 对于第一个问题,建议使用自己的RuntimeModule替代MainTemplate.hooks.hotBootstrap。
2. 对于第二个问题,建议使用npm install node-sass@4.14.1安装Node Sass的4.14.1版本。
3. 对于第三个问题,建议使用npm install sass-loader@10.1.1安装sass-loader的10.1.1版本。
4. 对于第四个问题,建议检查是否正确安装了thread-loader,并且是否正确配置了webpack.config.js文件。