{"id":22951546,"url":"https://github.com/lifailon/psinfluxdb","last_synced_at":"2026-02-28T03:39:29.886Z","repository":{"id":179488490,"uuid":"662132385","full_name":"Lifailon/psinfluxdb","owner":"Lifailon","description":"Integrating PowerShell Core with Indlux Database.","archived":false,"fork":false,"pushed_at":"2024-02-10T20:00:29.000Z","size":753,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"rsa","last_synced_at":"2025-03-28T03:30:09.719Z","etag":null,"topics":["api","chart","database","influx","influxdata","influxdb-client","powershell","powershell-module","rest","rest-api","windows","winforms","winforms-chart"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/psinfluxdb","language":"PowerShell","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/Lifailon.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}},"created_at":"2023-07-04T12:27:59.000Z","updated_at":"2025-03-06T08:18:52.000Z","dependencies_parsed_at":"2024-02-08T17:28:20.148Z","dependency_job_id":"50520d21-2665-4feb-b3ef-eb5ef37df286","html_url":"https://github.com/Lifailon/psinfluxdb","commit_stats":null,"previous_names":["lifailon/psinfluxdb"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2Fpsinfluxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2Fpsinfluxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2Fpsinfluxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2Fpsinfluxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lifailon","download_url":"https://codeload.github.com/Lifailon/psinfluxdb/tar.gz/refs/heads/rsa","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724798,"owners_count":20823544,"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":["api","chart","database","influx","influxdata","influxdb-client","powershell","powershell-module","rest","rest-api","windows","winforms","winforms-chart"],"created_at":"2024-12-14T15:16:37.847Z","updated_at":"2026-02-28T03:39:24.855Z","avatar_url":"https://github.com/Lifailon.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# psinfluxdb\n\n[![GitHub Release](https://img.shields.io/github/v/release/Lifailon/psinfluxdb?display_name=release\u0026logo=GitHub\u0026label=GitHub\u0026link=https%3A%2F%2Fgithub.com%2FLifailon%2Fpsinfluxdb%2F)](https://github.com/Lifailon/psinfluxdb)\n[![NuGet Version](https://img.shields.io/nuget/v/psinfluxdb?logo=NuGet\u0026label=NuGet\u0026link=https%3A%2F%2Fwww.nuget.org%2Fpackages%2Fpsinfluxdb)](https://www.nuget.org/packages/psinfluxdb)\n[![GitHub top language](https://img.shields.io/github/languages/top/Lifailon/psinfluxdb?logo=PowerShell\u0026link=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell)](https://github.com/PowerShell/PowerShell)\n[![GitHub License](https://img.shields.io/github/license/Lifailon/psinfluxdb?link=https%3A%2F%2Fgithub.com%2FLifailon%2Fpsinfluxdb%2Fblob%2Frsa%2FLICENSE)](https://github.com/Lifailon/psinfluxdb/blob/rsa/LICENSE)\n\n**PowerShell module for interaction to InfluxDB 1.x via API**. \\\nBy default GET requests give line-by output. This module is used to automate the query form and output in **object format**. \\\nOnly GET requests.\n\n## 🚀 Install\n\nInstall module from [NuGet repository](https://www.nuget.org/packages/psinfluxdb):\n\n```PowerShell\nInstall-Module psinfluxdb -Repository NuGet\n```\n\nImport module:\n\n```PowerShell\nPS C:\\Users\\Lifailon\u003e Import-Module psinfluxdb\nPS C:\\Users\\lifailon\u003e Get-Command -Module psinfluxdb\n\nCommandType     Name                      Version    Source\n-----------     ----                      -------    ------\nFunction        Get-InfluxChart           0.3        psinfluxdb\nFunction        Get-InfluxData            0.3        psinfluxdb\nFunction        Get-InfluxDatabases       0.3        psinfluxdb\nFunction        Get-InfluxPolicy          0.3        psinfluxdb\nFunction        Get-InfluxTables          0.3        psinfluxdb\nFunction        Get-InfluxUsers           0.3        psinfluxdb\n```\n\n## 📚 Examples\n\nGet user list:\n\n```PowerShell\nPS C:\\Users\\Lifailon\u003e Get-InfluxUsers -server 192.168.3.102\n\nuser  admin\n----  -----\nadmin True\nroot  True\nread  False\n```\n\nGet database list:\n\n```PowerShell\nPS C:\\Users\\Lifailon\u003e Get-InfluxDatabases -server 192.168.3.102\n\n_internal\nPowerShell\n```\n\nCreat and delete database:\n\n```PowerShell\nPS C:\\Users\\lifailon\u003e Get-InfluxDatabases -server 192.168.3.102 -creat -database test\n\n_internal\nPowerShell\ntest\n\nPS C:\\Users\\lifailon\u003e Get-InfluxDatabases -server 192.168.3.102 -delete -database test\n\n_internal\nPowerShell\n```\n\nDatabase storage policies (creat and set default):\n\n```PowerShell\nPS C:\\Users\\lifailon\u003e Get-InfluxPolicy -server 192.168.3.102 -database PowerShell\n\nname               : autogen\nduration           : 0s\nshardGroupDuration : 168h0m0s\nreplicaN           : 1\ndefault            : True\n\nPS C:\\Users\\lifailon\u003e Get-InfluxPolicy -server 192.168.3.102 -database PowerShell -creat -policyName del2d -hours 48\n\nname               : autogen\nduration           : 0s\nshardGroupDuration : 168h0m0s\nreplicaN           : 1\ndefault            : True\n\nname               : del2d\nduration           : 48h0m0s\nshardGroupDuration : 24h0m0s\nreplicaN           : 1\ndefault            : False\n\nPS C:\\Users\\lifailon\u003e Get-InfluxPolicy -server 192.168.3.102 -database PowerShell -policyName del2d -default\n\nname               : autogen\nduration           : 0s\nshardGroupDuration : 168h0m0s\nreplicaN           : 1\ndefault            : False\n\nname               : del2d\nduration           : 48h0m0s\nshardGroupDuration : 24h0m0s\nreplicaN           : 1\ndefault            : True\n```\n\nGet table (measurement) list:\n\n```PowerShell\nPS C:\\Users\\Lifailon\u003e Get-InfluxTables -server 192.168.3.102 -database PowerShell\n\nperformance\nping\nspeedtest\nHardwareMonitor\n```\n\nGet data from table (measurement) selected:\n\n```PowerShell\nPS C:\\Users\\Lifailon\u003e Get-InfluxData -server 192.168.3.102 -database PowerShell -table ping | ft\n\ntime                host            rtime status\n----                ----            ----- ------\n07/08/2023-15:16:24 HUAWEI-MB-X-Pro 22    True\n07/08/2023-15:16:29 HUAWEI-MB-X-Pro 20    True\n07/08/2023-15:16:35 HUAWEI-MB-X-Pro 20    True\n07/08/2023-15:16:41 HUAWEI-MB-X-Pro 20    True\n07/08/2023-15:16:51 HUAWEI-MB-X-Pro 0     False\n07/08/2023-15:17:06 HUAWEI-MB-X-Pro 32    True\n07/08/2023-15:17:16 HUAWEI-MB-X-Pro 22    True\n07/08/2023-15:17:27 HUAWEI-MB-X-Pro 20    True\n07/08/2023-15:17:37 HUAWEI-MB-X-Pro 20    True\n07/08/2023-15:17:47 HUAWEI-MB-X-Pro 21    True\n...\n```\n\n![Image alt](https://github.com/Lifailon/psinfluxdb/blob/rsa/image/Example.jpg)\n\nGet data for the last 30 minutes from [HardwareMonitor](https://github.com/Lifailon/PowerShellHardwareMonitor):\n\n```PowerShell\nPS C:\\Users\\lifailon\u003e Get-InfluxData -server 192.168.3.102 -database PowerShell -table HardwareMonitor -minutes 30 | Format-Table\n\ntime                HardwareName                  Host        SensorName                     SensorType     Value\n----                ------------                  ----        ----------                     ----------     -----\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#1                    Temperature_0  24\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#1_Distance_to_TjMax  Temperature_7  76\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#2                    Temperature_1  24\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#2_Distance_to_TjMax  Temperature_8  76\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#3                    Temperature_2  23\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#3_Distance_to_TjMax  Temperature_9  77\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#4                    Temperature_3  22\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#4_Distance_to_TjMax  Temperature_10 78\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#5                    Temperature_4  23\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#5_Distance_to_TjMax  Temperature_11 77\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#6                    Temperature_5  22\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Core_#6_Distance_to_TjMax  Temperature_12 78\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     CPU_Package                    Temperature_6  24\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     Core_Average                   Temperature_14 23\n02/03/2024-22:27:45 Intel_Core_i5-10400           PLEX-01     Core_Max                       Temperature_13 24\n02/03/2024-22:27:45 MSI_M390_250GB                PLEX-01     Temperature                    Temperature_0  34\n02/03/2024-22:27:45 Nuvoton_NCT6687D              PLEX-01     CPU                            Temperature_0  28\n02/03/2024-22:27:45 Nuvoton_NCT6687D              PLEX-01     CPU_Socket                     Temperature_4  27\n02/03/2024-22:27:45 Nuvoton_NCT6687D              PLEX-01     M2_1                           Temperature_6  23\n02/03/2024-22:27:45 Nuvoton_NCT6687D              PLEX-01     PCH                            Temperature_3  36\n02/03/2024-22:27:45 Nuvoton_NCT6687D              PLEX-01     PCIe_x1                        Temperature_5  29\n02/03/2024-22:27:45 Nuvoton_NCT6687D              PLEX-01     System                         Temperature_1  30\n02/03/2024-22:27:45 Nuvoton_NCT6687D              PLEX-01     VRM_MOS                        Temperature_2  36\n02/03/2024-22:27:45 Radeon_RX_570_Series          PLEX-01     GPU_Core                       Temperature_0  34\n02/03/2024-22:27:45 ST1000DM003-1CH162            PLEX-01     Temperature                    Temperature_0  31\n02/03/2024-22:27:45 WDC_WD2005FBYZ-01YCBB2        PLEX-01     Temperature                    Temperature_0  33\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#1                    Temperature_0  47\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#10                   Temperature_9  45\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#10_Distance_to_TjMax Temperature_22 55\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#11                   Temperature_10 45\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#11_Distance_to_TjMax Temperature_23 55\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#12                   Temperature_11 45\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#12_Distance_to_TjMax Temperature_24 55\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#1_Distance_to_TjMax  Temperature_13 53\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#2                    Temperature_1  48\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#2_Distance_to_TjMax  Temperature_14 52\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#3                    Temperature_2  47\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#3_Distance_to_TjMax  Temperature_15 53\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#4                    Temperature_3  45\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#4_Distance_to_TjMax  Temperature_16 55\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#5                    Temperature_4  50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#5_Distance_to_TjMax  Temperature_17 50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#6                    Temperature_5  50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#6_Distance_to_TjMax  Temperature_18 50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#7                    Temperature_6  50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#7_Distance_to_TjMax  Temperature_19 50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#8                    Temperature_7  50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#8_Distance_to_TjMax  Temperature_20 50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#9                    Temperature_8  45\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Core_#9_Distance_to_TjMax  Temperature_21 55\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK CPU_Package                    Temperature_12 50\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK Core_Average                   Temperature_26 47\n02/03/2024-22:27:50 12th_Gen_Intel_Core_i7-1260P  HUAWEI-BOOK Core_Max                       Temperature_25 50\n...\n```\n\n💡 Now we can filter the received data in the usual way (without resorting to SQL queries):\n\n```PowerShell\n$Data | Where-Object {$_.SensorName -match \"Package\" -and $_.Value -gt 90} | Format-Table\n\ntime                HardwareName                 Host        SensorName  SensorType     Value\n----                ------------                 ----        ----------  ----------     -----\n02/10/2024-19:05:24 12th_Gen_Intel_Core_i7-1260P HUAWEI-BOOK CPU_Package Temperature_12 95\n02/10/2024-19:20:01 12th_Gen_Intel_Core_i7-1260P HUAWEI-BOOK CPU_Package Temperature_12 92\n02/10/2024-19:20:24 12th_Gen_Intel_Core_i7-1260P HUAWEI-BOOK CPU_Package Temperature_12 94\n02/10/2024-19:29:04 12th_Gen_Intel_Core_i7-1260P HUAWEI-BOOK CPU_Package Temperature_12 99\n02/10/2024-19:30:20 12th_Gen_Intel_Core_i7-1260P HUAWEI-BOOK CPU_Package Temperature_12 98\n02/10/2024-19:30:32 12th_Gen_Intel_Core_i7-1260P HUAWEI-BOOK CPU_Package Temperature_12 92\n```\n\n## 📈 Charts\n\nThe Grafana alternative (used **WinForms**) to create graphs from data obtained with the [Ookla-SpeedTest](https://github.com/Lifailon/Ookla-SpeedTest-API) module.\n\n`$influx = Get-InfluxData -server 192.168.3.104 -database PowerShell -table speedtest` \\\n`Get-InfluxChart -time ($influx.time) -data ($influx.download) -title \"SpeedTest Download\" -path \"C:\\Users\\Lifailon\\Desktop\"`\n\n![Image alt](https://github.com/Lifailon/psinfluxdb/blob/rsa/image/Chart-Download.jpeg)\n\n`Get-InfluxChart -time ($influx.time) -data ($influx.upload) -title \"SpeedTest Upload\" -path \"C:\\Users\\Lifailon\\Desktop\"`\n\n![Image alt](https://github.com/Lifailon/psinfluxdb/blob/rsa/image/Chart-Upload.jpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fpsinfluxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifailon%2Fpsinfluxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fpsinfluxdb/lists"}