Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API calls cluster/stats/remoted and cluster/stats/analysisd #213

Merged
merged 2 commits into from
Oct 23, 2018

Conversation

druizz90
Copy link
Contributor

Hi team,

I added this API calls for getting stats from analysisd and remoted from a cluster node:

$ curl -u foo:bar -k -X GET "http://127.0.0.1:55000/cluster/client/stats/analysisd?pretty"
{
   "error": 0,
   "data": {
      "archives_queue_size": 16384,
      "events_dropped": 0,
      "rule_matching_queue_usage": 0,
      "alerts_queue_size": 16384,
      "event_queue_usage": 0,
      "events_edps": 3,
      "hostinfo_events_decoded": 0,
      "syscollector_events_decoded": 0,
      "rootcheck_edps": 0,
      "events_processed": 15,
      "firewall_queue_usage": 0,
      "alerts_queue_usage": 0,
      "firewall_queue_size": 16384,
      "alerts_written": 0,
      "firewall_written": 0,
      "syscheck_queue_size": 16384,
      "events_received": 15,
      "rootcheck_queue_usage": 0,
      "rootcheck_events_decoded": 0,
      "rootcheck_queue_size": 16384,
      "syscheck_edps": 0,
      "fts_written": 0,
      "syscheck_queue_usage": 0,
      "other_events_edps": 3,
      "statistical_queue_usage": 0,
      "hostinfo_edps": 0,
      "hostinfo_queue_usage": 0,
      "syscheck_events_decoded": 0,
      "syscollector_queue_usage": 0,
      "archives_queue_usage": 0,
      "statistical_queue_size": 16384,
      "total_events_decoded": 15,
      "hostinfo_queue_size": 16384,
      "syscollector_queue_size": 16384,
      "rule_matching_queue_size": 16384,
      "other_events_decoded": 15,
      "event_queue_size": 16384,
      "syscollector_edps": 0
   }
}
$ curl -u foo:bar -k -X GET "http://127.0.0.1:55000/cluster/client/stats/remoted?pretty"  
{
   "error": 0,
   "data": {
      "discarded_count": 0,
      "msg_sent": 1334,
      "queue_size": 0,
      "ctrl_msg_count": 1334,
      "evt_count": 15379,
      "tcp_sessions": 0,
      "total_queue_size": 131072
   }
}

Best regards,

Demetrio.

@druizz90 druizz90 self-assigned this Oct 19, 2018
@druizz90 druizz90 changed the title API calls cluster//remoted and cluster/analysisd API calls cluster/stats/remoted and cluster/stats/analysisd Oct 19, 2018
@jesuslinares jesuslinares merged commit c0318bb into 3.7 Oct 23, 2018
@jesuslinares jesuslinares deleted the dev-cluster-analysisd-remoted branch October 23, 2018 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants