Commit 6700ed23 authored by Your Name's avatar Your Name

update docker compose

parent 39d5e97c
version: "3.9" version: "3.9"
services: services:
monitor.multi: monitor.smi:
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
......
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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment