first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
17
Prometheus/shell推送数据到push-gateway.md
Normal file
17
Prometheus/shell推送数据到push-gateway.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
举例如下:
|
||||
推送一个指标:
|
||||
```
|
||||
echo "cqh_metric 100" | curl --data-binary @- http://ubuntu-linux:9091/metrics/job/cqh
|
||||
```
|
||||
|
||||
推送多个指标:
|
||||
```
|
||||
cat <<EOF | curl --data-binary @- http://10.211.55.25:9091/metrics/job/cqh/instance/test
|
||||
# 锻炼场所价格
|
||||
muscle_metric{label="gym"} 8800
|
||||
# 三大项数据 kg
|
||||
bench_press 100
|
||||
dead_lift 160
|
||||
deep_squal 160
|
||||
EOF
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue