{"id":23459576,"url":"https://github.com/d-led/linux_limits_to_influxdb","last_synced_at":"2026-04-30T13:34:29.382Z","repository":{"id":146620059,"uuid":"128268727","full_name":"d-led/linux_limits_to_influxdb","owner":"d-led","description":"Pushing Linux ulimit and ipcs limits into InfluxDB","archived":false,"fork":false,"pushed_at":"2018-04-11T20:23:37.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T23:40:38.604Z","etag":null,"topics":["administration","alerts","influxdb","ipcs","limits","linux","monitoring","ulimit"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d-led.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2018-04-05T21:58:21.000Z","updated_at":"2018-04-11T20:23:40.000Z","dependencies_parsed_at":"2023-04-30T08:53:29.519Z","dependency_job_id":null,"html_url":"https://github.com/d-led/linux_limits_to_influxdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d-led/linux_limits_to_influxdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Flinux_limits_to_influxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Flinux_limits_to_influxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Flinux_limits_to_influxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Flinux_limits_to_influxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d-led","download_url":"https://codeload.github.com/d-led/linux_limits_to_influxdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-led%2Flinux_limits_to_influxdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["administration","alerts","influxdb","ipcs","limits","linux","monitoring","ulimit"],"created_at":"2024-12-24T06:15:43.927Z","updated_at":"2026-04-30T13:34:29.376Z","avatar_url":"https://github.com/d-led.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux Limits to InfluxDB\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/d-led/linux_limits_to_influxdb)](https://goreportcard.com/report/github.com/d-led/linux_limits_to_influxdb) [![Build Status](https://travis-ci.org/d-led/linux_limits_to_influxdb.svg?branch=master)](https://travis-ci.org/d-led/linux_limits_to_influxdb)\n\n\u003e Pushing Linux `ulimit` and `ipcs` limits into [InfluxDB](https://www.influxdata.com/)\n\n## Configuration\n\nCurrently, configured via environment variables:\n\n- `INFLUX_URL`\n- `INFLUX_DB`\n- `INFLUX_USER`\n- `INFLUX_PWD`\n- `LLTI_DELAY_SECONDS` - delay when running forever\n\n## Running\n\n- Compile as a normal Go project and run the executable\n- Start with more than one command line parameter to push values only once\n- The user currently needs read permission on the target database. If it's not created beforehand, the user needs the permission to do so.\n\n## Demo/Testing\n\n- `docker-compose up --build`\n- open the shell in the influxdb container to query the DB manually:\n```\n# influx\nConnected to http://localhost:8086 version 1.5.1\nInfluxDB shell version: 1.5.1\n\u003e show databases\nname: databases\nname\n----\nllti\n_internal\n\u003e use llti\nUsing database llti\n\u003e show measurements\nname: measurements\nname\n----\nlimits\n\u003e select * from limits limit 10\nname: limits\ntime                distro_key distro_version hostname     max_file_descriptors max_locks max_number_of_arrays max_ops_per_semop_call max_processes max_semaphores_per_array max_semaphores_system_wide semaphore_max_value user\n----                ---------- -------------- --------     -------------------- --------- -------------------- ---------------------- ------------- ------------------------ -------------------------- ------------------- ----\n1523109704773347685 debian     9              444e47e798f4 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109704821112741 alpine     3.7.0          bc25099089c7 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109707946070771 alpine     3.7.0          bc25099089c7 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109707952562055 debian     9              444e47e798f4 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109711008809075 alpine     3.7.0          bc25099089c7 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109711049775876 debian     9              444e47e798f4 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109714080606991 alpine     3.7.0          bc25099089c7 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109714097346019 debian     9              444e47e798f4 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109717123049616 alpine     3.7.0          bc25099089c7 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n1523109717156276029 debian     9              444e47e798f4 1048576              -1        32000                500                    1048576       32000                    1024000000                 32767               root\n```\n\n### Grafana\n\n- Open `http://\u003cDOCKER_URL\u003e:3000` and log in with default [Grafana](https://grafana.com/) credentials `admin:admin`\n- Add an InfluxDB data source named `linux_limits` with the url `http://influxdb:8086` and the DB named `llti` ([img](demo/datasources.png))\n- Import [demo_dashboard.json](demo/demo_dashboard.json) at `http://\u003cDOCKER_URL\u003e:3000/dashboard/import`, selecting the data source above\n- Check the result:\n\n![table results in grafana](demo/table.png)\n\n### Running as a Service in Vagrant\n\n```\nvagrant up\nvagrant ssh\n...\nvagrant@stretch:~/.../linux_limits_to_influxdb$ go get ./...\nvagrant@stretch:~/.../linux_limits_to_influxdb$ go build\nvagrant@stretch:~/.../linux_limits_to_influxdb$ docker-compose up -d main influxdb\nvagrant@stretch:~/.../linux_limits_to_influxdb$ ls /usr/local/bin/ll*\n/usr/local/bin/llti\nvagrant@stretch:~/.../linux_limits_to_influxdb$ sudo ln -s `pwd`/llti.init /etc/init.d/llti.init\nvagrant@stretch:~/.../linux_limits_to_influxdb$ /etc/init.d/llti.init status\nStopped\nvagrant@stretch:~/.../linux_limits_to_influxdb$ sudo /etc/init.d/llti.init start\nStarting llti.init\nvagrant@stretch:~/.../linux_limits_to_influxdb$ sudo /etc/init.d/llti.init status\nRunning\nvagrant@stretch:~/.../linux_limits_to_influxdb$ docker-compose exec influxdb influx\nConnected to http://localhost:8086 version 1.5.1\nInfluxDB shell version: 1.5.1\n\u003e use llti\nUsing database llti\n\u003e select * from limits order by time desc limit 10\nname: limits\ntime                distro_key distro_version hostname     max_file_descriptors max_locks max_number_of_arrays max_ops_per_semop_call max_processes max_semaphores_per_array max_semaphores_system_wide semaphore_max_value user\n----                ---------- -------------- --------     -------------------- --------- -------------------- ---------------------- ------------- ------------------------ -------------------------- ------------------- ----\n1523297671324912420 alpine     3.7.0          4b3707f9127c 1048576              -1        32000                500                    -1            32000                    1024000000                 32767               root\n1523297670487376194 debian     9              stretch      1024                 -1        32000                500                    1882          32000                    1024000000                 32767               vagrant\n1523297668273948884 alpine     3.7.0          4b3707f9127c 1048576              -1        32000                500                    -1            32000                    1024000000                 32767               root\n1523297667448330396 debian     9              stretch      1024                 -1        32000                500                    1882          32000                    1024000000                 32767               vagrant\n1523297665246755912 alpine     3.7.0          4b3707f9127c 1048576              -1        32000                500                    -1            32000                    1024000000                 32767               root\n```\n\n## Dependencies\n\n- [influxdata/influxdb/client](https://github.com/influxdata/influxdb/tree/master/client)\n- [stretchr/testify/assert](https://github.com/stretchr/testify/tree/master/assert) for test readability\n- Docker (Compose), InfluxDB, Grafana, Vagrant for demo purposes\n- [fhd/init-script-template](https://github.com/fhd/init-script-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-led%2Flinux_limits_to_influxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-led%2Flinux_limits_to_influxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-led%2Flinux_limits_to_influxdb/lists"}