CastawayLabs / cachet-monitor

Distributed monitoring plugin for CachetHQ
https://castawaylabs.github.io/cachet-monitor/
MIT License
439 stars 127 forks source link

100% CPU when viewing graph #36

Closed alexcroox closed 8 years ago

alexcroox commented 8 years ago

Single metrics, only 3 components. As soon as I enable the metrics graph via cachet-monitor the CPU hits 100% for every page view for a good 60 seconds. If I disable the single metrics there is never any real load on the server rendering the page.

Am I doing something wrong?

Config:

{
  "api_url": "http://xx.xx.com/api/v1",
  "api_token": "xxx",
  "interval": 5,
  "monitors": [
    {
      "name": "xx Website",
      "url": "https://xx.com/apply",
      "metric_id": 2,
      "threshold": 80,
      "component_id": 1,
      "expected_status_code": 200,
      "strict_tls": true
    }
  ],
  "insecure_api": false
}
matejkramny commented 8 years ago

Is your cachet installation up to date?

They recently upgraded the way graphs are rendered. We experienced this graph CPU issue a long time ago.