{"id":18907375,"url":"https://github.com/yasumoto/enpitsu","last_synced_at":"2025-06-13T03:37:18.837Z","repository":{"id":66642553,"uuid":"93704866","full_name":"Yasumoto/Enpitsu","owner":"Yasumoto","description":"Swift Graphite Client","archived":false,"fork":false,"pushed_at":"2019-09-29T23:21:20.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-09T03:09:37.409Z","etag":null,"topics":["devops","graphite-api","swift-4","swift-package-manager","swift4"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/Yasumoto.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":"2017-06-08T03:46:14.000Z","updated_at":"2019-09-29T23:21:20.000Z","dependencies_parsed_at":"2023-04-10T16:32:52.503Z","dependency_job_id":null,"html_url":"https://github.com/Yasumoto/Enpitsu","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Yasumoto/Enpitsu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasumoto%2FEnpitsu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasumoto%2FEnpitsu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasumoto%2FEnpitsu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasumoto%2FEnpitsu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yasumoto","download_url":"https://codeload.github.com/Yasumoto/Enpitsu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yasumoto%2FEnpitsu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259574531,"owners_count":22878728,"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","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":["devops","graphite-api","swift-4","swift-package-manager","swift4"],"created_at":"2024-11-08T09:21:02.797Z","updated_at":"2025-06-13T03:37:18.809Z","avatar_url":"https://github.com/Yasumoto.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enpitsu\n\nA client for [`graphite-api`](https://graphite-api.readthedocs.io), named after the Japanese word for pencil. This can also be used through Grafana if that is configured to pass through to Graphite as a datasource.\n\nIf there are dashboards configured in Grafana, one can also use this library to get a list of dashboards as well as the graphs on a dashboard.\n\n## Usage\n\n```swift\nimport Foundation\n\nlet dateFormatter = DateFormatter()\ndateFormatter.dateStyle = .medium\ndateFormatter.timeStyle = .medium\ndateFormatter.timeZone = TimeZone(abbreviation: \"PDT\")!\n\nlet client = Enpitsu(graphiteServer: \"http://graphite.example.com:9001\")\nlet metrics = try client.retrieveMetrics(\"collectd.*.servers.host-*.metricname\")\nfor timeseries in metrics {\n    print(\"Target: \\(timeseries.target)\")\n    for datapoint in timeseries.datapoints {\n        print(incidentDateFormatter.string(from: datapoint.date))\n        print(\"\\(value)\")\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasumoto%2Fenpitsu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasumoto%2Fenpitsu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasumoto%2Fenpitsu/lists"}