{"id":20316020,"url":"https://github.com/lupyuen/ingest-nuttx-builds","last_synced_at":"2026-02-23T23:35:45.704Z","repository":{"id":260433329,"uuid":"880569452","full_name":"lupyuen/ingest-nuttx-builds","owner":"lupyuen","description":"Ingest Build Logs from Apache NuttX RTOS into Prometheus Pushgateway","archived":false,"fork":false,"pushed_at":"2026-01-27T08:43:53.000Z","size":179,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-27T20:59:19.669Z","etag":null,"topics":["ci","nuttx","prometheus","pushgateway"],"latest_commit_sha":null,"homepage":"https://lupyuen.org/articles/ci4.html","language":"Rust","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/lupyuen.png","metadata":{"files":{"readme":"README.md","changelog":"history.json","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["lupyuen"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["paypal.me/lupyuen"]}},"created_at":"2024-10-30T00:41:41.000Z","updated_at":"2026-01-27T08:43:56.000Z","dependencies_parsed_at":"2024-11-17T01:17:45.303Z","dependency_job_id":"ca90395a-46f9-450a-b09e-0107bc96a196","html_url":"https://github.com/lupyuen/ingest-nuttx-builds","commit_stats":null,"previous_names":["lupyuen/ingest-nuttx-builds"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lupyuen/ingest-nuttx-builds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fingest-nuttx-builds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fingest-nuttx-builds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fingest-nuttx-builds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fingest-nuttx-builds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lupyuen","download_url":"https://codeload.github.com/lupyuen/ingest-nuttx-builds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fingest-nuttx-builds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29760739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T21:02:23.375Z","status":"ssl_error","status_checked_at":"2026-02-23T20:58:31.539Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["ci","nuttx","prometheus","pushgateway"],"created_at":"2024-11-14T18:23:45.690Z","updated_at":"2026-02-23T23:35:45.688Z","avatar_url":"https://github.com/lupyuen.png","language":"Rust","funding_links":["https://github.com/sponsors/lupyuen","paypal.me/lupyuen"],"categories":[],"sub_categories":[],"readme":"![Ingest Build Logs from Apache NuttX RTOS into Prometheus Pushgateway](https://lupyuen.org/images/ci4-flow.jpg)\n\n# Ingest Build Logs from Apache NuttX RTOS into Prometheus Pushgateway\n\nRead the articles...\n\n- [\"Continuous Integration Dashboard for Apache NuttX RTOS (Prometheus and Grafana)\"](https://lupyuen.org/articles/ci4.html)\n\n- [\"Optimising the Continuous Integration for Apache NuttX RTOS (GitHub Actions)\"](https://lupyuen.org/articles/ci3.html)\n\n- [\"Your very own Build Farm for Apache NuttX RTOS\"](https://lupyuen.org/articles/ci2.html)\n\n- [\"Rewinding a Build\" for Apache NuttX RTOS (Docker)\"](https://lupyuen.org/articles/ci6.html)\n\n- [\"Auto-Rewind for Daily Test (Apache NuttX RTOS)\"](https://lupyuen.org/articles/rewind.html)\n\nTo ingest NuttX Build Logs into Prometheus Pushgateway: [run.sh](run.sh)\n\n```bash\n## We prefer GitLab Snippets, since GitHub Gists will get blocked for overuse.\n## For GitHub Gists: Any GitHub Token with read access will do\n## export GITHUB_TOKEN=...\n. $HOME/github-token.sh\n\n## Find all defconfig files\ncd $HOME ; git clone https://github.com/apache/nuttx\nfind $HOME/nuttx -name defconfig \u003e/tmp/defconfig.txt\n\n## Ingest logs from lupyuen/nuttx-build-log GitLab Snippets. Remove special characters.\n## gitlab-token.sh contains \"export GITHUB_TOKEN=...\", any GitLab Token with read access will do.\nset +x ; . $HOME/gitlab-token.sh ; set -x\ncargo run -- \\\n  --user lupyuen \\\n  --repo nuttx-build-log \\\n  --defconfig /tmp/defconfig.txt \\\n  | tr -d '\\033\\007'\nunset GITLAB_TOKEN\n\n## Ingest logs from nuttxpr GitHub Gist. Remove special characters.\ncargo run -- \\\n  --user nuttxpr \\\n  --defconfig /tmp/defconfig.txt \\\n  | tr -d '\\033\\007'\n\n## Ingest logs from GitHub Actions\n./github.sh\n\n## Or: Start GitHub Actions Build, wait to complete then ingest logs\n./build-github-and-ingest.sh\n\n## Or: Sync NuttX Mirror Repo, start GitHub Actions Build, wait to complete then ingest logs\n## https://github.com/lupyuen/nuttx-release/blob/main/sync-build-ingest.sh\n../nuttx-release/sync-build-ingest.sh\n```\n\n[(See the __Ingest Log for GitHub Gists__)](https://gist.github.com/lupyuen/7da9c95b3efe39ff818772775c90da96)\n\n[(See the __Ingest Log for GitHub Actions__)](https://gist.github.com/lupyuen/1c0c3ff584d083d59d4b2190ecee3f99)\n\n![Continuous Integration Dashboard](https://lupyuen.org/images/ci4-dashboard.png)\n\n# Continuous Integration Dashboard\n\nTo install Grafana and Prometheus...\n\n```bash\n## Install Grafana\nbrew install grafana\nbrew services start grafana\n## Browse to http://localhost:3000\n\n## Install Prometheus\nbrew install prometheus\nbrew services start prometheus\n## Browse to http://localhost:9090\n\n## Install Prometheus Pushgateway\nbrew install go\ngit clone https://github.com/prometheus/pushgateway\ncd pushgateway\ngo run main.go \u0026\n## Browse to http://localhost:9091\n```\n\nUpdate the Grafana and Prometheus Configuration...\n- [/opt/homebrew/etc/grafana/grafana.ini](grafana.ini)\n- [/opt/homebrew/etc/prometheus.yml](prometheus.yml)\n\nAdd the Grafana Dashboard and Panels...\n- [dashboard.json](dashboard.json)\n  - [links.json](links.json)\n  - [highlights.json](highlights.json)\n  - [error-builds.json](error-builds.json)\n  - [success-builds.json](success-builds.json)\n- [dashboard-history.json](dashboard-history.json)\n  - [history.json](history.json)\n\nRemember to check for suspicious activity!\n\n```bash\ntail -f /opt/homebrew/var/log/grafana/grafana.log \\\n  | grep --line-buffered \"logger=context \" \\\n  | grep --line-buffered -v \"path=/api/frontend-metrics \" \\\n  | grep --line-buffered -v \"path=/api/live/ws \" \\\n  | grep --line-buffered -v \"path=/api/plugins/grafana-lokiexplore-app/settings \" \\\n  | grep --line-buffered -v \"path=/api/user/auth-tokens/rotate \" \\\n  | grep --line-buffered -v \"path=/favicon.ico \" \\\n  | cut -d ' ' -f 9-15\n```\n\nHighlight the HTTP Errors: iTerm \u003e Profile \u003e Advanced \u003e Triggers...\n- Regular Expression: `status=[4-9][^ ]+[ ]`, Action: Highlight Line, Background: Red\n- Regular Expression: `path=[^ ]+[ ]`, Action: Highlight Text, Background: Dark Blue\n\nIf we see too many HTTP 404 Errors for Dubious URLs (we're not a WordPress Server!): Turn on Cloudflare \u003e Under Attack Mode. The errors should disappear.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Fingest-nuttx-builds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flupyuen%2Fingest-nuttx-builds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Fingest-nuttx-builds/lists"}