${user:password} is the username and password of the instance, ${vip}:${vport} the IP and port, and ${metric_name} the name of the created metric. For parameter descriptions, see Creating Metric.curl -u ${user:password} -H 'Content-Type:application/json' -X PUT ${vip}:${vport}/_metric/${metric_name} -d'{"tags": {"region": "string","set": "long","host": "string"},"time": {"name": "timestamp","format": "epoch_second"},"fields": {"cpu_usage": "float"},"options": {"expire_day": 7,"refresh_interval": "10s","number_of_shards": 5,"number_of_replicas": 1,"rolling_period": 1}}'
Feedback