I want to configure remote_write in pmm to collect pmm data to influxdb. I followed this document for relevant configuration.but unfortunately no data was collected.
please let me know how to make the remote_write configuration effective.
thanks.
The following is my trial process:
[root@c5c0248d14a4 prometheus]# pwd
/srv/prometheus
[root@c5c0248d14a4 prometheus]#
[root@c5c0248d14a4 prometheus]# cat prometheus.base.yml
---
remote_write:
- url: http://10.10.236.101:32224/api/v1/prom/write?db=pmm
[root@c5c0248d14a4 prometheus]#
[root@c5c0248d14a4 prometheus]# curl -X POST http://admin:admin@172.16.99.144/v1/Settings/Change
{
"settings": {
"telemetry_enabled": true,
"metrics_resolutions": {
"hr": "5s",
"mr": "10s",
"lr": "60s"
},
"data_retention": "2592000s",
"aws_partitions": [
"aws"
],
"stt_check_intervals": {
"standard_interval": "86400s",
"rare_interval": "280800s",
"frequent_interval": "14400s"
}
}
}[root@c5c0248d14a4 prometheus]#cat /etc/victoriametrics-promscrape.yml
# Managed by pmm-managed. DO NOT EDIT.
---
global:
scrape_interval: 1m
scrape_timeout: 54s
.......
.......
remote_write:
- url: http://10.10.236.101:32224/api/v1/prom/write?db=pmm
[root@c5c0248d14a4 prometheus]#
Access to the database found that no data has been collected (ps:can ensure that the url is legal):
[root@c5c0248d14a4 prometheus]# curl -G 'http://10.10.236.101:32224/query?pretty=true' --data-urlencode "db=pmm" --data-urlencode "q=show measurements limit 10"
{
"results": [
{
"statement_id": 0
}
]
}
[root@c5c0248d14a4 prometheus]#