Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gpuhw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
gpuhw
Commits
6700ed23
Commit
6700ed23
authored
May 23, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docker compose
parent
39d5e97c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
20 deletions
+1
-20
docker-compose-smi.yml
docker-compose-smi.yml
+1
-1
main.go
main.go
+0
-19
No files found.
docker-compose-smi.yml
View file @
6700ed23
version
:
"
3.9"
version
:
"
3.9"
services
:
services
:
monitor.
mult
i
:
monitor.
sm
i
:
image
:
docker.ai.17xuexi.com/monitorapi/monitor-smi:latest
image
:
docker.ai.17xuexi.com/monitorapi/monitor-smi:latest
network_mode
:
host
network_mode
:
host
privileged
:
true
privileged
:
true
...
...
main.go
View file @
6700ed23
package
main
package
main
import
(
import
(
"flag"
"fmt"
"fmt"
"log"
"log"
...
@@ -12,24 +11,6 @@ import (
...
@@ -12,24 +11,6 @@ import (
)
)
func
main
()
{
func
main
()
{
//ExampleAPI_query()
promethAddr
:=
flag
.
String
(
"promethaddr"
,
"http://127.0.0.1:9090"
,
"a string parameter"
)
flag
.
Parse
()
//cli, err := NewProCli("http://192.168.1.21:9090")
fmt
.
Println
(
"connect to prometh addr-----------"
,
*
promethAddr
)
//cli, err := NewProCli("http://192.168.1.21:9090")
// cli, err := NewProCli(*promethAddr)
// if err != nil {
// fmt.Println(err.Error())
// return
// }
// Initialize a new Fiber app
// Initialize a new Fiber app
app
:=
fiber
.
New
()
app
:=
fiber
.
New
()
app
.
Use
(
cors
.
New
())
app
.
Use
(
cors
.
New
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment