Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listen tcp: address 8080: missing port in address #1

Open
marcusteixeira opened this issue Jan 14, 2020 · 2 comments
Open

listen tcp: address 8080: missing port in address #1

marcusteixeira opened this issue Jan 14, 2020 · 2 comments

Comments

@marcusteixeira
Copy link

Running Unity Export with default configs:

./unity2promgo

My Configs(example used of port field):

{
"exporter": {
"port": "8080",
"interval": 60,
"pools": false,
"storage_resources": false,
"metrics":}}

it gives the following logs:

2020/01/14 18:05:15 main.go:main - Create unity Session: ip
2020/01/14 18:05:17 main.go:main - Unity Name: unityname
2020/01/14 18:05:17 unityCollector.go:NewUnityCollector - Unity: unityname
2020/01/14 18:05:17 1
2020/01/14 18:05:17 listen tcp: address 8080: missing port in address

@marcusteixeira
Copy link
Author

@martin-duerre

@kdessai19
Copy link

@martin-duerre / @marcusteixeira was this pull request ever approved?

If i set "storage_resources": true, in configs.json i get hit with the below error

panic: runtime error: index out of range [0] with length 0

goroutine 26 [running]:
main.UnityCollector.CollectStorageResourceMetrics.func1()
        /splunk/goprojects/unity2promgo/unitycollector.go:222 +0x509
created by main.UnityCollector.CollectStorageResourceMetrics
        /splunk/goprojects/unity2promgo/unitycollector.go:210 +0xaa

If "storage_resources": false i see below but doesn't seems to be fetching any metrics,

2022/04/17 08:06:08 main.go:main - Create unity Session: ##.##.##.##
2022/04/17 08:06:09 main.go:main - Unity Name: MYUNITYSERVER
2022/04/17 08:06:09 unityCollector.go:NewUnityCollector - Unity: MYUNITYSERVER
2022/04/17 08:06:09 1
2022/04/17 08:06:31 UnityCollector - Collector: Query Realtime Metrics with interval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants