Skip to content

Commit

Permalink
rm unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
rzrbld committed Apr 28, 2020
1 parent 2afe065 commit 251c300
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ docker run -d \
```
:boom: let's suppose everything running ok, and you don't have any error messages from ze3000 <br/><br/>
by default ze3000 brings up next endpoints:
- `/metrics` - main and exported metrics (you can change it over ZE3000_METRIC_URI_PATH environment variable. In exampe above this env variable set to `/my-metrics`)
- `/metrics` - main and exported metrics (you can change it over ZE3000_METRIC_URI_PATH environment variable. In example above this env variable set to `/my-metrics`)
- `/ready` - readiness probe for k8s monitoring
- `/live` - liveness probe for k8s monitoring

Expand Down
10 changes: 0 additions & 10 deletions handlers/response.go

This file was deleted.

6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {

fmt.Println("\033[31m\r\n\r\n\r\n███████╗███████╗██████╗ ██████╗ ██████╗ ██████╗ \r\n╚══███╔╝██╔════╝╚════██╗██╔═████╗██╔═████╗██╔═████╗ \r\n ███╔╝ █████╗ █████╔╝██║██╔██║██║██╔██║██║██╔██║ \r\n ███╔╝ ██╔══╝ ╚═══██╗████╔╝██║████╔╝██║████╔╝██║ \r\n███████╗███████╗██████╔╝╚██████╔╝╚██████╔╝╚██████╔╝ \r\n╚══════╝╚══════╝╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ \r\n\033[m")
fmt.Println("\033[33mZabbix Exporter for Prometheus")
fmt.Println("version : 0.1 Alpha")
fmt.Println("version : 0.5")
fmt.Println("Author : rzrbld")
fmt.Println("License : MIT")
fmt.Println("Git-repo : https://github.com/rzrbld/zabbix-exporter-3000 \033[m \r\n")
Expand All @@ -44,5 +44,9 @@ func main() {
ctx.WriteString("ok")
})

app.Get("/", func(ctx iris.Context) {
ctx.WriteString("zabbix-exporter-3000")
})

app.Run(iris.Addr(cnf.MainHostPort), iris.WithoutServerError(iris.ErrServerClosed))
}

0 comments on commit 251c300

Please sign in to comment.