반응형
OpenSearch URL을 직접 호출하는게 아닌, OpenSearch Dashboards URL을 호출하여 OpenSearch API를 사용할 수 있다.
/api/console/proxy 를 호출하여 사용하면된다.
curl -u admin:password -H "osd-xsrf: true" -H "Content-Type: application/json" -XPOST "http://os-dashboard.wky.kr:30080/api/console/proxy?path=_cluster/health&method=GET"
## 결과
{"cluster_name":"opensearch-cluster","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"discovered_master":true,"discovered_cluster_manager":true,"active_primary_shards":9,"active_shards":9,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":2,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":81.81818181818183}
반응형
'Develop > OpenSearch / FluentBit' 카테고리의 다른 글
OpenSearch metrics Prometheus 연결 (0) | 2025.03.23 |
---|---|
OpenSearch, OpenSearch Dashboard helm 설치 정리 (0) | 2025.03.06 |
OpenSearch SingleNode (0) | 2025.03.06 |
OpenSearch Operator Coordinator (0) | 2025.02.18 |
Fluent-Bit Systemd Logging (0) | 2025.02.18 |