{"id":15286507,"url":"https://github.com/mfurquimdev/compendium_prometheus","last_synced_at":"2026-02-14T11:02:02.644Z","repository":{"id":151961028,"uuid":"200680332","full_name":"mfurquimdev/compendium_prometheus","owner":"mfurquimdev","description":"Este projeto é um conjunto simples de explicações de tecnologias chaves para executar um cluster de promster.","archived":false,"fork":false,"pushed_at":"2019-09-16T19:20:11.000Z","size":15353,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T03:40:08.679Z","etag":null,"topics":["docker","docker-compose","etcd","grafana","metrics","prometheus","promster"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfurquimdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-05T15:18:18.000Z","updated_at":"2022-02-18T11:27:42.000Z","dependencies_parsed_at":"2023-06-02T05:00:40.864Z","dependency_job_id":null,"html_url":"https://github.com/mfurquimdev/compendium_prometheus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mfurquimdev/compendium_prometheus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Fcompendium_prometheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Fcompendium_prometheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Fcompendium_prometheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Fcompendium_prometheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfurquimdev","download_url":"https://codeload.github.com/mfurquimdev/compendium_prometheus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Fcompendium_prometheus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","docker-compose","etcd","grafana","metrics","prometheus","promster"],"created_at":"2024-09-30T15:15:14.117Z","updated_at":"2026-02-14T11:02:02.608Z","avatar_url":"https://github.com/mfurquimdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Compêndio Prometheus + Grafana\n==============================\n\nDocker\n------\n\nTodos os exemplos utilizarão `Docker` e `docker-compose`. Este conhecimento é essencial e será explicado na sessão [0\\_docker].\n\n- Hello World\n- Build image\n- Cache and Build vs Run time\n- Entrypoint and CMD\n- Docker Compose\n- Volumes\n\nMetrics\n-------\n\nInstrumentar códgio em Go e Java para expor /metrics\n\n- Counter\n- Gauge\n- Histogram\n- Summary\n- Histogram vs Summary\n\n\nPrometheus\n----------\n\nSubir um prometheus para fazer scrape e mostrá-lo no /graph\n\nFederação: conceito e como fazer para passar info no /federate\n\n- rules.yml\n- alerts.yml\n- prometheus.yml\n- ENVS: {scrapeinterval, evaluateinterval, scrapetimeout, tsdbretention, rulespath, alertspath, startupfile, prometheusname, targetsfile}\n\n\nGrafana\n-------\n\nArquivo de configuração para adicionar o prometheus como fonte dos dados\n\n- grafana-cli plugins install\n- /etc/grafana/dashboards\n- /etc/grafana/provisioning/dashboards\n- /etc/grafana/provisioning/datasources\n- volume [\"/data\"]\n\nPromster\n--------\n\nSubir um conjunto de serviços para o promster rodar com 2 níveis\n1. Subir ETCD para escrever, ler, e apagar uma chave (explicar `ETCDCTL_API=3` e como dar `export`)\n2. Subir um `etcd_registrar` para registrar um IP e mantê-lo ativo, matar o serviço para ver a chave sumindo do ETCD (utilizar `watch etcdctl get --prefix /`)\n3. Subir o `promster` level 1 e level 2\n4. Configurar o grana\n\n- etcd\n- registry\n- rule\n- match regex\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfurquimdev%2Fcompendium_prometheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfurquimdev%2Fcompendium_prometheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfurquimdev%2Fcompendium_prometheus/lists"}