{"id":31646160,"url":"https://github.com/codefresh-io/runtime-cluster-monitor","last_synced_at":"2025-10-07T05:20:44.903Z","repository":{"id":36963858,"uuid":"239739265","full_name":"codefresh-io/runtime-cluster-monitor","owner":"codefresh-io","description":"prometheus for runtime clusters","archived":false,"fork":false,"pushed_at":"2023-07-12T17:53:14.000Z","size":180,"stargazers_count":7,"open_issues_count":2,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-25T14:59:43.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codefresh-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-11T10:52:31.000Z","updated_at":"2022-06-15T12:35:24.000Z","dependencies_parsed_at":"2023-01-17T09:03:42.506Z","dependency_job_id":null,"html_url":"https://github.com/codefresh-io/runtime-cluster-monitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codefresh-io/runtime-cluster-monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fruntime-cluster-monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fruntime-cluster-monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fruntime-cluster-monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fruntime-cluster-monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codefresh-io","download_url":"https://codeload.github.com/codefresh-io/runtime-cluster-monitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefresh-io%2Fruntime-cluster-monitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278722757,"owners_count":26034463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-07T05:20:33.898Z","updated_at":"2025-10-07T05:20:44.897Z","avatar_url":"https://github.com/codefresh-io.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus for runtime clusters\n\nThese scripts deploy a Prometheus Operator installation (Prometheus, Alertmanager, Grafana)\nthat's pre-configured for Codefresh runtime clusters. It includes alerts and dashboards for monitoring\nthe runtime cluster, as well as configures exporters and cron jobs. What's included:\n\n* [Prometheus Operator](https://github.com/coreos/prometheus-operator)\n* [cluster-autoscaler-exporter](https://github.com/codefresh-io/cluster-autoscaler-exporter)\n* `dind-volume-cleanup`, `dind-monitor`, `dind-exporter` and `event-exporter` (custom parts with source code not provided)\n\nWe create a `monitoring` namespace and put all the things there.\n\n## Required\n* kubectl\n* helm\n* [helmfile](https://github.com/roboll/helmfile)\n\n## Configuration\nIf you want Slack or VictorOps notifications write a file: `values.yaml`.\n\nIt may specify:\n* `slack_hook`: URL to Slack hook\n* `slack_warnings`: channel name for warnings, full name like `#ops-warnings`\n* `slack_errors`: channel name for errors, full name like `#ops-errors`\n* `victorops_api_key`: API key to VictorOps\n* `victorops_routing`: VictorOps routing policy name\n* `affinity`: string to set up monitoring affinity/tolerations (see [template](https://github.com/codefresh-io/runtime-cluster-monitor/blob/master/templates/affinity.yaml.gotmpl) for more details)\n* `prom_ram`: Prometheus memory requests and limits, defaults to `6Gi` for a 8GB instance  \n   use `14Gi` if using a 16GB instance; use `24Gi` if using a 32GB instance\n* `prom_cpu`: Prometheus CPU requests (defaults to `1`, you may want to increase it)  \n  Prometheus CPU limits are twice this value\n* `coredns: true` set this if using CoreDNS, not Kube-DNS\n\nPlease note that if you set `slack_hook`, you're reqiuired to set both `slack_warnings` and `slack_errors`.  \nIf you set `victorops_api_key`, `victorops_routing` is also required.\n\n## Usage\n* switch your k8s context to needed\n* `helmfile [-e local] sync` to install or update your installation\n* `helmfile destroy` to remove the deployment\n\nuse `-e local` if you have `values.yaml`, if you don't, just omit this part.\n\n## Access services\n\n### [prometheus](http://localhost:9090/prometheus/)\n`kubectl -n monitoring port-forward svc/cprom-prometheus-operator-prometheus 9090`\n\n### [alertmanager](http://localhost:9093/alertmanager/)\n`kubectl -n monitoring port-forward svc/cprom-prometheus-operator-alertmanager 9093`\n\n### [grafana](http://localhost:3000/grafana/)\n`kubectl -n monitoring port-forward svc/cprom-grafana 3000:80`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefresh-io%2Fruntime-cluster-monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefresh-io%2Fruntime-cluster-monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefresh-io%2Fruntime-cluster-monitor/lists"}