WebSocket module uses websocket to send data from an instance to a collector.
You need sirona-websocket-client dependency and to add the following configuration in your sirona.properties:
org.apache.sirona.store.DataStoreFactory = org.apache.sirona.websocket.client.WebSocketDataStoreFactory org.apache.sirona.websocket.client.WebSocketClientBuilder.marker = test org.apache.sirona.websocket.client.WebSocketClientBuilder.uri = ws://localhost:1235/test-websocket/ # optional org.apache.sirona.websocket.client.WebSocketClientBuilder.retries = 2 org.apache.sirona.websocket.client.WebSocketClientBuilder.authorization = BASIC xxxxx
If you want to specify websocket for a subset of data store use the following classes:
You need to add sirona-websocket-server dependency and configure the collector in websocket mode (no need of HTTP collector if you don’t use it):
org.apache.sirona.store.status.NodeStatusDataStore = org.apache.sirona.store.status.InMemoryCollectorNodeStatusDataStore org.apache.sirona.store.counter.CollectorCounterStore = org.apache.sirona.store.memory.counter.InMemoryCollectorCounterStore org.apache.sirona.store.gauge.CollectorGaugeDataStore = org.apache.sirona.store.gauge.DelegatedCollectorGaugeDataStore # not yet implemented with websockets so if you use it use http push for path tracking or another one org.apache.sirona.store.tracking.PathTrackingDataStore = org.apache.sirona.store.memory.tracking.InMemoryPathTrackingDataStore