dell / iDRAC-Telemetry-Reference-Tools

Reference toolset for PowerEdge telemetry metric collection and integration with analytics and visualization solutions.
https://github.com/dell/iDRAC-Telemetry-Reference-Tools
Apache License 2.0
30 stars 20 forks source link

telemetry reference tools not worked with prometheus #102

Closed vintury closed 2 years ago

vintury commented 2 years ago

Hello. Configuration setup could not complete for prometheus. There are many messages in the configuration of the installation process and it does not stop. Last message: "Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish"

Setup process:

ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ ./docker-compose-files/compose.sh setup --prometheus-test-db
Pass: Docker compose version is 2.2.3.
[+] Running 23/25
 ⠿ grafana-setup-influx-datasource Error                                                                                                                                                                                                                 1.5s
 ⠿ grafana Pulled                                                                                                                                                                                                                                       16.6s
   ⠿ df9b9388f04a Pull complete                                                                                                                                                                                                                          3.5s
   ⠿ 8a2d7b6c89bf Pull complete                                                                                                                                                                                                                          3.9s
   ⠿ 290368f4e636 Pull complete                                                                                                                                                                                                                          5.5s
   ⠿ 34f09fc247ac Pull complete                                                                                                                                                                                                                          5.7s
   ⠿ f58a7c0e6b43 Pull complete                                                                                                                                                                                                                          6.6s
   ⠿ a5e39be1ca05 Pull complete                                                                                                                                                                                                                         14.2s
   ⠿ 9310026c8fc6 Pull complete                                                                                                                                                                                                                         14.3s
   ⠿ f7053e076105 Pull complete                                                                                                                                                                                                                         14.4s
   ⠿ dd166239212b Pull complete                                                                                                                                                                                                                         14.5s
 ⠿ prometheus Pulled                                                                                                                                                                                                                                    12.6s
   ⠿ 50e8d59317eb Pull complete                                                                                                                                                                                                                          1.0s
   ⠿ b6c3b3e34d73 Pull complete                                                                                                                                                                                                                          2.0s
   ⠿ a2e16c7047f9 Pull complete                                                                                                                                                                                                                          5.5s
   ⠿ a96a052cd33c Pull complete                                                                                                                                                                                                                          8.4s
   ⠿ e008aa9ce341 Pull complete                                                                                                                                                                                                                          8.7s
   ⠿ 4691b2e44244 Pull complete                                                                                                                                                                                                                          8.9s
   ⠿ 9661a7a702f8 Pull complete                                                                                                                                                                                                                          9.2s
   ⠿ 586ae72743cc Pull complete                                                                                                                                                                                                                          9.5s
   ⠿ 21cdbc93d370 Pull complete                                                                                                                                                                                                                          9.7s
   ⠿ 9285c2ca8bb2 Pull complete                                                                                                                                                                                                                          9.9s
   ⠿ 75dc67f7e388 Pull complete                                                                                                                                                                                                                         10.1s
   ⠿ 3dfa2b58407d Pull complete                                                                                                                                                                                                                         10.4s
 ⠿ setup-prometheus-pump Error                                                                                                                                                                                                                           1.5s
Sending build context to Docker daemon  118.1kB
Step 1/2 : FROM alpine:latest
latest: Pulling from library/alpine
213ec9aee27d: Pull complete 
Digest: sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad
Status: Downloaded newer image for alpine:latest
 ---> 9c6f07244728
Step 2/2 : RUN apk --no-cache add curl jq uuidgen
 ---> Running in ab8e032784f2
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
(1/9) Installing ca-certificates (20220614-r0)
(2/9) Installing brotli-libs (1.0.9-r6)
(3/9) Installing nghttp2-libs (1.47.0-r0)
(4/9) Installing libcurl (7.83.1-r2)
(5/9) Installing curl (7.83.1-r2)
(6/9) Installing oniguruma (6.9.8-r0)
(7/9) Installing jq (1.6-r1)
(8/9) Installing libuuid (2.38-r1)
(9/9) Installing uuidgen (2.38-r1)
Executing busybox-1.35.0-r17.trigger
Executing ca-certificates-20220614-r0.trigger
OK: 9 MiB in 23 packages
Removing intermediate container ab8e032784f2
 ---> 0920c4b0ec5a
[Warning] One or more build-args [GROUPNAME GROUP_ID USERNAME USER_ID] were not consumed
Successfully built 0920c4b0ec5a
Successfully tagged idrac-telemetry-reference-tools/setupprometheus:latest
Sending build context to Docker daemon  118.1kB
Step 1/2 : FROM alpine:latest
 ---> 9c6f07244728
Step 2/2 : RUN apk --no-cache add curl jq uuidgen
 ---> Using cache
 ---> 0920c4b0ec5a
[Warning] One or more build-args [GROUPNAME GROUP_ID USERNAME USER_ID] were not consumed
Successfully built 0920c4b0ec5a
Successfully tagged idrac-telemetry-reference-tools/setup:latest

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 7/7
 ⠿ Network idrac-telemetry-reference-tools_host-bridge-net                      Created                                                                                                                                                                  0.1s
 ⠿ Volume "idrac-telemetry-reference-tools_grafana-storage"                     Created                                                                                                                                                                  0.0s
 ⠿ Volume "idrac-telemetry-reference-tools_prometheus-data"                     Created                                                                                                                                                                  0.0s
 ⠿ Container prometheus                                                         Started                                                                                                                                                                  0.8s
 ⠿ Container telemetry-reference-tools-grafana                                  Started                                                                                                                                                                  1.5s
 ⠿ Container idrac-telemetry-reference-tools-grafana-setup-influx-datasource-1  Started                                                                                                                                                                  2.4s
 ⠿ Container idrac-telemetry-reference-tools-setup-prometheus-pump-1            Started                                                                                                                                                                  1.7s
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish

I created DATA_SOURCE manually, but it not solve message flooding.

image

About my server:

ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ docker version
Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:02:57 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:03 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.7
  GitCommit:        0197261a30bf81f1ee8e6a4dd2dea0ef95d67ccb
 runc:
  Version:          1.1.3
  GitCommit:        v1.1.3-0-g6724737
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ docker-compose -v
Docker Compose version v2.2.3

ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ uname -a
Linux ip-172-27-1-25 5.13.0-1029-aws #32~20.04.1-Ubuntu SMP Thu Jun 9 13:03:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"

ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ docker ps -a
CONTAINER ID   IMAGE                                                    COMMAND                  CREATED          STATUS                      PORTS                                       NAMES
86d83075dc3f   idrac-telemetry-reference-tools/setup:latest             "/extrabin/initializ…"   13 seconds ago   Up 11 seconds                                                           idrac-telemetry-reference-tools-grafana-setup-influx-datasource-1
e3d2a0cd46be   idrac-telemetry-reference-tools/setupprometheus:latest   "/bin/sh"                14 seconds ago   Exited (0) 11 seconds ago                                               idrac-telemetry-reference-tools-setup-prometheus-pump-1
311131208d18   grafana/grafana:9.0.1                                    "/run.sh"                14 seconds ago   Up 12 seconds               0.0.0.0:3000->3000/tcp, :::3000->3000/tcp   telemetry-reference-tools-grafana
5f207b262c4f   prom/prometheus:v2.36.0                                  "/bin/prometheus --c…"   14 seconds ago   Up 12 seconds               0.0.0.0:9090->9090/tcp, :::9090->9090/tcp   prometheus

ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ docker logs idrac-telemetry-reference-tools-setup-prometheus-pump-1
ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ docker logs telemetry-reference-tools-grafana
✔ Downloaded grafana-polystat-panel v1.2.11 zip successfully

Please restart Grafana after installing plugins. Refer to Grafana documentation for instructions if necessary.

logger=settings t=2022-08-23T13:54:45.48605418Z level=info msg="Starting Grafana" version=9.0.1 commit=14e988bd22 branch=HEAD compiled=2022-06-21T13:43:01Z
logger=settings t=2022-08-23T13:54:45.486480809Z level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini
logger=settings t=2022-08-23T13:54:45.48658704Z level=info msg="Config loaded from" file=/etc/grafana/grafana.ini
logger=settings t=2022-08-23T13:54:45.486656115Z level=info msg="Config overridden from command line" arg="default.paths.data=/var/lib/grafana"
logger=settings t=2022-08-23T13:54:45.486705388Z level=info msg="Config overridden from command line" arg="default.paths.logs=/var/log/grafana"
logger=settings t=2022-08-23T13:54:45.486772204Z level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins"
logger=settings t=2022-08-23T13:54:45.486825175Z level=info msg="Config overridden from command line" arg="default.paths.provisioning=/etc/grafana/provisioning"
logger=settings t=2022-08-23T13:54:45.486875607Z level=info msg="Config overridden from command line" arg="default.log.mode=console"
logger=settings t=2022-08-23T13:54:45.486934365Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_DATA=/var/lib/grafana"
logger=settings t=2022-08-23T13:54:45.486981209Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_LOGS=/var/log/grafana"
logger=settings t=2022-08-23T13:54:45.48701263Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
logger=settings t=2022-08-23T13:54:45.487060119Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
logger=settings t=2022-08-23T13:54:45.487094841Z level=info msg="Path Home" path=/usr/share/grafana
logger=settings t=2022-08-23T13:54:45.487139563Z level=info msg="Path Data" path=/var/lib/grafana
logger=settings t=2022-08-23T13:54:45.487179483Z level=info msg="Path Logs" path=/var/log/grafana
logger=settings t=2022-08-23T13:54:45.487209926Z level=info msg="Path Plugins" path=/var/lib/grafana/plugins
logger=settings t=2022-08-23T13:54:45.487251395Z level=info msg="Path Provisioning" path=/etc/grafana/provisioning
logger=settings t=2022-08-23T13:54:45.487291383Z level=info msg="App mode production"
logger=sqlstore t=2022-08-23T13:54:45.487398521Z level=info msg="Connecting to DB" dbtype=sqlite3
logger=migrator t=2022-08-23T13:54:45.509445413Z level=info msg="Starting DB migrations"
logger=migrator t=2022-08-23T13:54:45.515163292Z level=info msg="migrations completed" performed=0 skipped=425 duration=723.447µs
logger=plugin.manager t=2022-08-23T13:54:45.556576958Z level=info msg="Plugin registered" pluginId=input
logger=plugin.manager t=2022-08-23T13:54:45.585589318Z level=info msg="Plugin registered" pluginId=grafana-polystat-panel
logger=secrets t=2022-08-23T13:54:45.586282279Z level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1
logger=query_data t=2022-08-23T13:54:45.593731982Z level=info msg="Query Service initialization"
logger=live.push_http t=2022-08-23T13:54:45.601840938Z level=info msg="Live Push Gateway initialization"
logger=infra.usagestats.collector t=2022-08-23T13:54:45.756288751Z level=info msg="registering usage stat providers" usageStatsProvidersLen=2
logger=provisioning.datasources t=2022-08-23T13:54:45.756705794Z level=error msg="can't read datasource provisioning files from directory" path=/etc/grafana/provisioning/datasources error="open /etc/grafana/provisioning/datasources: no such file or directory"
logger=provisioning.plugins t=2022-08-23T13:54:45.756848604Z level=error msg="Failed to read plugin provisioning files from directory" path=/etc/grafana/provisioning/plugins error="open /etc/grafana/provisioning/plugins: no such file or directory"
logger=provisioning.notifiers t=2022-08-23T13:54:45.756922518Z level=error msg="Can't read alert notification provisioning files from directory" path=/etc/grafana/provisioning/notifiers error="open /etc/grafana/provisioning/notifiers: no such file or directory"
logger=http.server t=2022-08-23T13:54:45.760591432Z level=info msg="HTTP Server Listen" address=[::]:3000 protocol=http subUrl= socket=
logger=ngalert t=2022-08-23T13:54:45.760793116Z level=info msg="warming cache for startup"
logger=ngalert.multiorg.alertmanager t=2022-08-23T13:54:45.761029529Z level=info msg="starting MultiOrg Alertmanager"
logger=provisioning.dashboard t=2022-08-23T13:54:45.761397896Z level=error msg="can't read dashboard provisioning files from directory" path=/etc/grafana/provisioning/dashboards error="open /etc/grafana/provisioning/dashboards: no such file or directory"
logger=grafanaStorageLogger t=2022-08-23T13:54:45.764935956Z level=info msg="storage starting"
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2022-08-23T13:55:44.681988313Z level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=185.119.0.165 time_ms=1 duration=1.295208ms size=0 referer= traceID=00000000000000000000000000000000
logger=live t=2022-08-23T13:57:06.172551959Z level=info msg="Initialized channel handler" channel=grafana/dashboard/uid/Cl2GHHW4z address=grafana/dashboard/uid/Cl2GHHW4z
ubuntu@ip-172-27-1-25:~/iDRAC-Telemetry-Reference-Tools$ docker logs prometheus
ts=2022-08-23T13:54:44.381Z caller=main.go:491 level=info msg="No time or size retention was set so using the default time retention" duration=15d
ts=2022-08-23T13:54:44.383Z caller=main.go:535 level=info msg="Starting Prometheus Server" mode=server version="(version=2.36.0, branch=HEAD, revision=d48f381d9a4e68c83283ce5233844807dfdc5ba5)"
ts=2022-08-23T13:54:44.384Z caller=main.go:540 level=info build_context="(go=go1.18.2, user=root@b3126bd1c115, date=20220530-13:56:56)"
ts=2022-08-23T13:54:44.384Z caller=main.go:541 level=info host_details="(Linux 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 ba0b8a950a3e (none))"
ts=2022-08-23T13:54:44.384Z caller=main.go:542 level=info fd_limits="(soft=1048576, hard=1048576)"
ts=2022-08-23T13:54:44.384Z caller=main.go:543 level=info vm_limits="(soft=unlimited, hard=unlimited)"
ts=2022-08-23T13:54:44.386Z caller=web.go:553 level=info component=web msg="Start listening for connections" address=0.0.0.0:9090
ts=2022-08-23T13:54:44.387Z caller=main.go:972 level=info msg="Starting TSDB ..."
ts=2022-08-23T13:54:44.407Z caller=tls_config.go:195 level=info component=web msg="TLS is disabled." http2=false
ts=2022-08-23T13:54:44.408Z caller=head.go:493 level=info component=tsdb msg="Replaying on-disk memory mappable chunks if any"
ts=2022-08-23T13:54:44.408Z caller=head.go:536 level=info component=tsdb msg="On-disk memory mappable chunks replay completed" duration=2.47µs
ts=2022-08-23T13:54:44.408Z caller=head.go:542 level=info component=tsdb msg="Replaying WAL, this may take a while"
ts=2022-08-23T13:54:44.809Z caller=head.go:613 level=info component=tsdb msg="WAL segment loaded" segment=0 maxSegment=1
ts=2022-08-23T13:54:44.809Z caller=head.go:613 level=info component=tsdb msg="WAL segment loaded" segment=1 maxSegment=1
ts=2022-08-23T13:54:44.809Z caller=head.go:619 level=info component=tsdb msg="WAL replay completed" checkpoint_replay_duration=1.567329ms wal_replay_duration=398.947324ms total_replay_duration=400.539787ms
ts=2022-08-23T13:54:44.810Z caller=main.go:993 level=info fs_type=EXT4_SUPER_MAGIC
ts=2022-08-23T13:54:44.810Z caller=main.go:996 level=info msg="TSDB started"
ts=2022-08-23T13:54:44.810Z caller=main.go:1177 level=info msg="Loading configuration file" filename=/config/prometheus.yml
ts=2022-08-23T13:54:44.811Z caller=main.go:1214 level=info msg="Completed loading of configuration file" filename=/config/prometheus.yml totalDuration=655.084µs db_storage=1.267µs remote_storage=2.248µs web_handler=672ns query_engine=997ns scrape=275.221µs scrape_sd=41.265µs notify=833ns notify_sd=3.344µs rules=1.734µs tracing=3.757µs
ts=2022-08-23T13:54:44.811Z caller=main.go:957 level=info msg="Server is ready to receive web requests."
ts=2022-08-23T13:54:44.811Z caller=manager.go:937 level=info component="rule manager" msg="Starting rule manager..."

Expected behavior: the configuration process ( ./compose.sh setup --prometheus-test-db) will complete and after it I can start the process ( ./compose.sh start).

vintury commented 2 years ago

May be you have other solution for scraping metrics from idrac in prometheus format? May be you have idrac prometheus exporter?

SailM23 commented 2 years ago

Hello, thanks for reaching. We are aware of this issue and PR is raised and will be available in the main shortly. Will keep you posted.

SailM23 commented 2 years ago

actually prometheus with grafana got broken just recently and were in the process of addressing it.

SailM23 commented 2 years ago

https://github.com/dell/iDRAC-Telemetry-Reference-Tools/pull/103 PR#103 will resolve the this issue.

vintury commented 2 years ago

Hello. Thank you for fast response. You choose hard way for creating that utility I think. Maybe you have idrac prometheus exporter?

SailM23 commented 2 years ago

We have automated dashboards in Grafana with either Influx or the Prometheus. There was glitch with an earlier change of Prometheus automated dashboards, which broke. Fixed it now with the PR#103 merged into main. It'll be great if you can try out and let us know.

vintury commented 2 years ago

I still have the same problem:

~/iDRAC-Telemetry-Reference-Tools$ git pull
remote: Enumerating objects: 11, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 5), reused 2 (delta 2), pack-reused 0
Unpacking objects: 100% (6/6), 2.82 KiB | 262.00 KiB/s, done.
From https://github.com/dell/iDRAC-Telemetry-Reference-Tools
   b03303d..bfc9976  main       -> origin/main
Updating b03303d..bfc9976
Fast-forward
 docker-compose-files/compose.sh                                  |   4 +-
 docker-compose-files/docker-compose.yml                          |   6 +--
 docker-compose-files/initialize_grafana_influx_datasource.sh     | 505 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------
 docker-compose-files/initialize_grafana_prometheus_datasource.sh | 132 ------------------------------------------------
 4 files changed, 324 insertions(+), 323 deletions(-)
 delete mode 100755 docker-compose-files/initialize_grafana_prometheus_datasource.sh

~/iDRAC-Telemetry-Reference-Tools$ ./docker-compose-files/compose.sh setup --prometheus-test-db
Pass: Docker compose version is 2.10.0.
Cleaning up old containers for telemetry-reference-tools-grafana: 58ee7a1169aa
81560d255ddf
Stopping: 58ee7a1169aa
81560d255ddf
Removing: 58ee7a1169aa
81560d255ddf
Cleaning up old containers for prometheus: 4bd80986e703
a7b5f6216169
Stopping: 4bd80986e703
a7b5f6216169
Removing: 4bd80986e703
a7b5f6216169
[+] Running 4/4
 ⠿ Container prometheus                                                         Started                                                                                                                                                                  0.7s
 ⠿ Container telemetry-reference-tools-grafana                                  Started                                                                                                                                                                  0.8s
 ⠿ Container idrac-telemetry-reference-tools-setup-prometheus-pump-1            Started                                                                                                                                                                  1.3s
 ⠿ Container idrac-telemetry-reference-tools-grafana-setup-influx-datasource-1  Started                                                                                                                                                                  1.5s
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
SailM23 commented 2 years ago

I see you didnt do the clean up steps in between the git pull and the setup of the --prometheus-test-db.

Can you try cleaning up all the containers by stopping them and removing? like these might help to remove stale containers: docker kill and docker rm of all the containers, (can be done with docker rm -vf $(docker ps -aq);docker rmi -f $(docker images -aq)) And regular clean up process steps are: 1) ./docker-compose-files/compose.sh stop --prometheus-test-db 2) docker container prune -f;docker volume prune -f; 3) git clean -dfx.

vintury commented 2 years ago

I create new instance. Now I see empty dashboard:

image image
ubuntu@ip-172-27-1-238:~$ git clone https://github.com/dell/iDRAC-Telemetry-Reference-Tools/
Cloning into 'iDRAC-Telemetry-Reference-Tools'...
remote: Enumerating objects: 795, done.
remote: Counting objects: 100% (250/250), done.
remote: Compressing objects: 100% (99/99), done.
remote: Total 795 (delta 176), reused 154 (delta 150), pack-reused 545
Receiving objects: 100% (795/795), 7.55 MiB | 22.73 MiB/s, done.
Resolving deltas: 100% (410/410), done.
ubuntu@ip-172-27-1-238:~$ cd iDRAC-Telemetry-Reference-Tools/
ubuntu@ip-172-27-1-238:~/iDRAC-Telemetry-Reference-Tools$ ./docker-compose-files/compose.sh setup --prometheus-test-db
Pass: Docker compose version is 2.10.1.
[+] Running 23/25
 ⠿ grafana Pulled                                                                                                                                                                                                                                       16.9s
   ⠿ df9b9388f04a Pull complete                                                                                                                                                                                                                          0.8s
   ⠿ 8a2d7b6c89bf Pull complete                                                                                                                                                                                                                          1.1s
   ⠿ 290368f4e636 Pull complete                                                                                                                                                                                                                          2.6s
   ⠿ 34f09fc247ac Pull complete                                                                                                                                                                                                                          2.8s
   ⠿ f58a7c0e6b43 Pull complete                                                                                                                                                                                                                          4.7s
   ⠿ a5e39be1ca05 Pull complete                                                                                                                                                                                                                         14.5s
   ⠿ 9310026c8fc6 Pull complete                                                                                                                                                                                                                         14.6s
   ⠿ f7053e076105 Pull complete                                                                                                                                                                                                                         14.7s
   ⠿ dd166239212b Pull complete                                                                                                                                                                                                                         14.8s
 ⠿ setup-prometheus-pump Error                                                                                                                                                                                                                           1.5s
 ⠿ prometheus Pulled                                                                                                                                                                                                                                    16.6s
   ⠿ 50e8d59317eb Pull complete                                                                                                                                                                                                                          2.5s
   ⠿ b6c3b3e34d73 Pull complete                                                                                                                                                                                                                          4.1s
   ⠿ a2e16c7047f9 Pull complete                                                                                                                                                                                                                          7.6s
   ⠿ a96a052cd33c Pull complete                                                                                                                                                                                                                         12.1s
   ⠿ e008aa9ce341 Pull complete                                                                                                                                                                                                                         12.4s
   ⠿ 4691b2e44244 Pull complete                                                                                                                                                                                                                         12.6s
   ⠿ 9661a7a702f8 Pull complete                                                                                                                                                                                                                         13.0s
   ⠿ 586ae72743cc Pull complete                                                                                                                                                                                                                         13.3s
   ⠿ 21cdbc93d370 Pull complete                                                                                                                                                                                                                         13.6s
   ⠿ 9285c2ca8bb2 Pull complete                                                                                                                                                                                                                         13.8s
   ⠿ 75dc67f7e388 Pull complete                                                                                                                                                                                                                         14.1s
   ⠿ 3dfa2b58407d Pull complete                                                                                                                                                                                                                         14.4s
 ⠿ grafana-setup-influx-datasource Error                                                                                                                                                                                                                 1.5s
[+] Building 3.5s (8/8) FINISHED                                                                                                                                                                                                                              
 => [idrac-telemetry-reference-tools/setup:latest internal] load build definition from Dockerfile.setup                                                                                                                                                  0.1s
 => => transferring dockerfile: 102B                                                                                                                                                                                                                     0.0s
 => [idrac-telemetry-reference-tools/setup:latest internal] load .dockerignore                                                                                                                                                                           0.2s
 => => transferring context: 87B                                                                                                                                                                                                                         0.0s
 => [idrac-telemetry-reference-tools/setupprometheus:latest internal] load build definition from Dockerfile.setup                                                                                                                                        0.1s
 => => transferring dockerfile: 102B                                                                                                                                                                                                                     0.0s
 => [idrac-telemetry-reference-tools/setupprometheus:latest internal] load .dockerignore                                                                                                                                                                 0.1s
 => => transferring context: 87B                                                                                                                                                                                                                         0.0s
 => [idrac-telemetry-reference-tools/setupprometheus:latest internal] load metadata for docker.io/library/alpine:latest                                                                                                                                  1.4s
 => [idrac-telemetry-reference-tools/setupprometheus:latest 1/2] FROM docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad                                                                            0.5s
 => => resolve docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad                                                                                                                                   0.0s
 => => sha256:1304f174557314a7ed9eddb4eab12fed12cb0cd9809e4c28f29af86979a3c870 528B / 528B                                                                                                                                                               0.0s
 => => sha256:9c6f0724472873bb50a2ae67a9e7adcb57673a183cea8b06eb778dca859181b5 1.47kB / 1.47kB                                                                                                                                                           0.0s
 => => sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49 2.81MB / 2.81MB                                                                                                                                                           0.2s
 => => sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad 1.64kB / 1.64kB                                                                                                                                                           0.0s
 => => extracting sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49                                                                                                                                                                0.2s
 => [idrac-telemetry-reference-tools/setupprometheus:latest 2/2] RUN apk --no-cache add curl jq uuidgen                                                                                                                                                  1.1s
 => [idrac-telemetry-reference-tools/setupprometheus:latest] exporting to image                                                                                                                                                                          0.2s
 => => exporting layers                                                                                                                                                                                                                                  0.2s
 => => writing image sha256:96c7bbebe4aa9c091c1eee6f957f7111797c426237fc2ae707d26c81a877f90f                                                                                                                                                             0.0s 
 => => naming to docker.io/idrac-telemetry-reference-tools/setup:latest                                                                                                                                                                                  0.0s 
 => => naming to docker.io/idrac-telemetry-reference-tools/setupprometheus:latest                                                                                                                                                                        0.0s 

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 7/7
 ⠿ Network idrac-telemetry-reference-tools_host-bridge-net                      Created                                                                                                                                                                  0.1s
 ⠿ Volume "idrac-telemetry-reference-tools_prometheus-data"                     Created                                                                                                                                                                  0.0s
 ⠿ Volume "idrac-telemetry-reference-tools_grafana-storage"                     Created                                                                                                                                                                  0.0s
 ⠿ Container telemetry-reference-tools-grafana                                  Started                                                                                                                                                                  1.3s
 ⠿ Container prometheus                                                         Started                                                                                                                                                                  1.3s
 ⠿ Container idrac-telemetry-reference-tools-setup-prometheus-pump-1            Started                                                                                                                                                                  2.4s
 ⠿ Container idrac-telemetry-reference-tools-grafana-setup-influx-datasource-1  Started                                                                                                                                                                  2.3s
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
Waiting for grafana container setup Prometheus DATA_SOURCE & DASHBOARD to finish
GRAFANA_PROM_DASHBOARD_CREATED=1
grafana container setup done for datasource and dashboards. Shutting down.
[+] Running 4/4
 ⠿ Container idrac-telemetry-reference-tools-setup-prometheus-pump-1            Stopped                                                                                                                                                                  0.0s
 ⠿ Container idrac-telemetry-reference-tools-grafana-setup-influx-datasource-1  Stopped                                                                                                                                                                  0.0s
 ⠿ Container prometheus                                                         Stopped                                                                                                                                                                  0.2s
 ⠿ Container telemetry-reference-tools-grafana                                  Stopped                                                                                                                                                                  0.3s
f3c76ef6d31a
9a25bacc1142
ubuntu@ip-172-27-1-238:~/iDRAC-Telemetry-Reference-Tools$ ./docker-compose-files/compose.sh start --prometheus-test-db
Pass: Docker compose version is 2.10.1.
prometheus variable is: 1
Set up environment file in /home/ubuntu/iDRAC-Telemetry-Reference-Tools/.env
To run manually, run the following command line:
docker-compose --project-directory /home/ubuntu/iDRAC-Telemetry-Reference-Tools -f /home/ubuntu/iDRAC-Telemetry-Reference-Tools/docker-compose-files/docker-compose.yml --profile core --profile prometheus-test-db up  -d

[+] Running 23/27
 ⠿ prometheus-pump-withtestserver Error                                                                                                                                                                                                                  1.5s
 ⠿ mysqldb Pulled                                                                                                                                                                                                                                       32.0s
   ⠿ 918cd2ecf4de Pull complete                                                                                                                                                                                                                         11.5s
   ⠿ 0e09c69f9ec2 Pull complete                                                                                                                                                                                                                         11.9s
   ⠿ 505d6cfca930 Pull complete                                                                                                                                                                                                                         12.1s
   ⠿ 9df52933885b Pull complete                                                                                                                                                                                                                         13.0s
   ⠿ fe0dd9d6941f Pull complete                                                                                                                                                                                                                         13.1s
   ⠿ 3a0c2d2972a2 Pull complete                                                                                                                                                                                                                         13.2s
   ⠿ d65c9083bf4b Pull complete                                                                                                                                                                                                                         17.7s
   ⠿ bc84d1b513c5 Pull complete                                                                                                                                                                                                                         18.1s
   ⠿ 98f7a3e65d5c Pull complete                                                                                                                                                                                                                         29.4s
   ⠿ aaf95e1eec92 Pull complete                                                                                                                                                                                                                         29.7s
   ⠿ 3fb99ba1c589 Pull complete                                                                                                                                                                                                                         29.9s
 ⠿ redfishread Error                                                                                                                                                                                                                                     1.5s
 ⠿ activemq Pulled                                                                                                                                                                                                                                      35.5s
   ⠿ 05d1a5232b46 Pull complete                                                                                                                                                                                                                         10.3s
   ⠿ 5cee356eda6b Pull complete                                                                                                                                                                                                                         12.4s
   ⠿ 89d3385f0fd3 Pull complete                                                                                                                                                                                                                         12.9s
   ⠿ 65dd87f6620b Pull complete                                                                                                                                                                                                                         13.4s
   ⠿ 78a183a01190 Pull complete                                                                                                                                                                                                                         13.5s
   ⠿ 1a4499c85f97 Pull complete                                                                                                                                                                                                                         13.6s
   ⠿ 2c9d39b4bfc1 Pull complete                                                                                                                                                                                                                         31.4s
   ⠿ 1b1cec2222c9 Pull complete                                                                                                                                                                                                                         31.4s
   ⠿ 3d16996d92ad Pull complete                                                                                                                                                                                                                         32.3s
   ⠿ aa7d1fb483cc Pull complete                                                                                                                                                                                                                         33.8s
 ⠿ configui Error                                                                                                                                                                                                                                        1.5s
 ⠿ dbdiscauth Error                                                                                                                                                                                                                                      1.5s
[+] Building 127.8s (73/73) FINISHED                                                                                                                                                                                                                          
 => [idrac-telemetry-reference-tools/prometheuspump:latest internal] load build definition from Dockerfile                                                                                                                                               0.3s
 => => transferring dockerfile: 1.16kB                                                                                                                                                                                                                   0.2s
 => [idrac-telemetry-reference-tools/prometheuspump:latest internal] load .dockerignore                                                                                                                                                                  0.2s
 => => transferring context: 87B                                                                                                                                                                                                                         0.2s
 => [idrac-telemetry-reference-tools/configui:latest internal] load build definition from Dockerfile.configui                                                                                                                                            0.2s
 => => transferring dockerfile: 1.20kB                                                                                                                                                                                                                   0.2s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest internal] load build definition from Dockerfile                                                                                                                                                   0.3s
 => => transferring dockerfile: 1.16kB                                                                                                                                                                                                                   0.3s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest internal] load .dockerignore                                                                                                                                                                      0.3s
 => => transferring context: 87B                                                                                                                                                                                                                         0.2s
 => [idrac-telemetry-reference-tools/configui:latest internal] load .dockerignore                                                                                                                                                                        0.3s
 => => transferring context: 87B                                                                                                                                                                                                                         0.2s
 => [idrac-telemetry-reference-tools/redfishread:latest internal] load build definition from Dockerfile                                                                                                                                                  0.3s
 => => transferring dockerfile: 1.16kB                                                                                                                                                                                                                   0.1s
 => [idrac-telemetry-reference-tools/redfishread:latest internal] load .dockerignore                                                                                                                                                                     0.2s
 => => transferring context: 87B                                                                                                                                                                                                                         0.1s
 => [idrac-telemetry-reference-tools/prometheuspump:latest internal] load metadata for docker.io/library/golang:1.17                                                                                                                                     1.6s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  1/13] FROM docker.io/library/golang:1.17@sha256:87262e4a4c7db56158a80a18fefdc4fee5accc41b59cde821e691d05541bbb18                                                                        29.4s
 => => resolve docker.io/library/golang:1.17@sha256:87262e4a4c7db56158a80a18fefdc4fee5accc41b59cde821e691d05541bbb18                                                                                                                                     0.0s
 => => sha256:55636cf1983628109e569690596b85077f45aca810a77904e8afad48b49aa500 1.80kB / 1.80kB                                                                                                                                                           0.0s
 => => sha256:d836772a1c1f9c4b1f280fb2a98ace30a4c4c87370f89aa092b35dfd9556278a 55.00MB / 55.00MB                                                                                                                                                         1.2s
 => => sha256:66a9e63c657ad881997f5165c0826be395bfc064415876b9fbaae74bcb5dc721 5.16MB / 5.16MB                                                                                                                                                           0.6s
 => => sha256:87262e4a4c7db56158a80a18fefdc4fee5accc41b59cde821e691d05541bbb18 2.35kB / 2.35kB                                                                                                                                                           0.0s
 => => sha256:742df529b073e7d1e213702a6cca40c32f3f5068125988de249416ba0abee517 7.12kB / 7.12kB                                                                                                                                                           0.0s
 => => sha256:d1989b6e74cfdda1591b9dd23be47c5caeb002b7a151379361ec0c3f0e6d0e52 10.88MB / 10.88MB                                                                                                                                                         0.9s
 => => sha256:c28818711e1ed38df107014a20127b41491b224d7aed8aa7066b55552d9600d2 54.58MB / 54.58MB                                                                                                                                                         2.9s
 => => sha256:9d6246ba248cc80872dc2995f9080ef76305b540968dadb096b75f2e2146a38a 85.90MB / 85.90MB                                                                                                                                                         4.9s
 => => sha256:21d43f0d73c2979514706af3d892f631b75d5c2d56aebfac0172e5a4e934b447 135.06MB / 135.06MB                                                                                                                                                       6.1s
 => => extracting sha256:d836772a1c1f9c4b1f280fb2a98ace30a4c4c87370f89aa092b35dfd9556278a                                                                                                                                                                6.4s
 => => sha256:d8a1c5873f408d3f5a8d8d73c6b9a3d77818bab0b26142a493909ea8c4d0c020 154B / 154B                                                                                                                                                               5.1s
 => => extracting sha256:66a9e63c657ad881997f5165c0826be395bfc064415876b9fbaae74bcb5dc721                                                                                                                                                                0.5s
 => => extracting sha256:d1989b6e74cfdda1591b9dd23be47c5caeb002b7a151379361ec0c3f0e6d0e52                                                                                                                                                                0.5s
 => => extracting sha256:c28818711e1ed38df107014a20127b41491b224d7aed8aa7066b55552d9600d2                                                                                                                                                                4.4s
 => => extracting sha256:9d6246ba248cc80872dc2995f9080ef76305b540968dadb096b75f2e2146a38a                                                                                                                                                                4.7s
 => => extracting sha256:21d43f0d73c2979514706af3d892f631b75d5c2d56aebfac0172e5a4e934b447                                                                                                                                                                9.6s
 => => extracting sha256:d8a1c5873f408d3f5a8d8d73c6b9a3d77818bab0b26142a493909ea8c4d0c020                                                                                                                                                                0.0s
 => [idrac-telemetry-reference-tools/redfishread:latest internal] load build context                                                                                                                                                                     0.1s
 => => transferring context: 105.65kB                                                                                                                                                                                                                    0.1s
 => [idrac-telemetry-reference-tools/prometheuspump:latest internal] load build context                                                                                                                                                                  0.2s
 => => transferring context: 97.50kB                                                                                                                                                                                                                     0.1s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest internal] load build context                                                                                                                                                                      0.2s
 => => transferring context: 98.32kB                                                                                                                                                                                                                     0.1s
 => [idrac-telemetry-reference-tools/configui:latest internal] load build context                                                                                                                                                                        0.2s
 => => transferring context: 109.25kB                                                                                                                                                                                                                    0.2s
 => [idrac-telemetry-reference-tools/configui:latest builder  2/13] WORKDIR /app                                                                                                                                                                         0.5s
 => [idrac-telemetry-reference-tools/configui:latest builder  3/13] RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade                                                                         33.8s
 => [idrac-telemetry-reference-tools/redfishread:latest builder  3/13] RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade                                                                      33.9s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  3/13] RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade                                                                       33.8s
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder  3/13] RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade                                                                   33.8s
 => [idrac-telemetry-reference-tools/configui:latest builder  4/13] WORKDIR /build                                                                                                                                                                       0.3s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  4/13] WORKDIR /build                                                                                                                                                                     0.3s
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder  4/13] WORKDIR /build                                                                                                                                                                 0.2s
 => [idrac-telemetry-reference-tools/redfishread:latest builder  4/13] WORKDIR /build                                                                                                                                                                    0.2s
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder  5/13] RUN (getent group 1000  && (echo groupdel by-id 1000; groupdel $(getent group 1000 | cut -d: -f1))) ||:                                                                        1.5s 
 => [idrac-telemetry-reference-tools/redfishread:latest builder  5/13] RUN (getent group 1000  && (echo groupdel by-id 1000; groupdel $(getent group 1000 | cut -d: -f1))) ||:                                                                           1.3s 
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  5/13] RUN (getent group 1000  && (echo groupdel by-id 1000; groupdel $(getent group 1000 | cut -d: -f1))) ||:                                                                            1.4s 
 => [idrac-telemetry-reference-tools/configui:latest builder  5/13] RUN (getent group 1000  && (echo groupdel by-id 1000; groupdel $(getent group 1000 | cut -d: -f1))) ||:                                                                              1.3s 
 => [idrac-telemetry-reference-tools/configui:latest builder  6/13] RUN (getent group telemetry && (echo groupdel telemetry; groupdel telemetry)) ||:                                                                                                    1.3s 
 => [idrac-telemetry-reference-tools/redfishread:latest builder  6/13] RUN (getent group telemetry && (echo groupdel telemetry; groupdel telemetry)) ||:                                                                                                 1.5s 
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  6/13] RUN (getent group telemetry && (echo groupdel telemetry; groupdel telemetry)) ||:                                                                                                  1.3s 
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder  6/13] RUN (getent group telemetry && (echo groupdel telemetry; groupdel telemetry)) ||:                                                                                              1.4s 
 => [idrac-telemetry-reference-tools/configui:latest builder  7/13] RUN (getent passwd telemetry && (echo userdel telemetry; userdel -f telemetry)) ||:                                                                                                  1.4s 
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  7/13] RUN (getent passwd telemetry && (echo userdel telemetry; userdel -f telemetry)) ||:                                                                                                1.3s 
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder  7/13] RUN (getent passwd telemetry && (echo userdel telemetry; userdel -f telemetry)) ||:                                                                                            1.4s 
 => [idrac-telemetry-reference-tools/redfishread:latest builder  7/13] RUN (getent passwd telemetry && (echo userdel telemetry; userdel -f telemetry)) ||:                                                                                               1.4s 
 => [idrac-telemetry-reference-tools/configui:latest builder  8/13] RUN groupadd -g 1000 telemetry                                                                                                                                                       1.5s 
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  8/13] RUN groupadd -g 1000 telemetry                                                                                                                                                     1.2s 
 => [idrac-telemetry-reference-tools/redfishread:latest builder  8/13] RUN groupadd -g 1000 telemetry                                                                                                                                                    1.6s 
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder  8/13] RUN groupadd -g 1000 telemetry                                                                                                                                                 1.5s 
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder  9/13] RUN useradd -l -u 1000 -g telemetry telemetry                                                                                                                                      1.4s 
 => [idrac-telemetry-reference-tools/configui:latest builder  9/13] RUN useradd -l -u 1000 -g telemetry telemetry                                                                                                                                        1.4s 
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder  9/13] RUN useradd -l -u 1000 -g telemetry telemetry                                                                                                                                  1.4s 
 => [idrac-telemetry-reference-tools/redfishread:latest builder  9/13] RUN useradd -l -u 1000 -g telemetry telemetry                                                                                                                                     1.5s 
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder 10/13] COPY internal /build/internal                                                                                                                                                      0.3s
 => [idrac-telemetry-reference-tools/configui:latest builder 10/13] COPY internal /build/internal                                                                                                                                                        0.3s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder 11/13] COPY cmd/dbdiscauth /build/cmd/dbdiscauth                                                                                                                                          0.2s
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder 10/13] COPY internal /build/internal                                                                                                                                                  0.4s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder 12/13] COPY go.* /build/                                                                                                                                                                  0.3s
 => [idrac-telemetry-reference-tools/configui:latest builder 11/13] COPY cmd/configui /build/cmd/configui                                                                                                                                                0.2s
 => [idrac-telemetry-reference-tools/redfishread:latest builder 10/13] COPY internal /build/internal                                                                                                                                                     0.4s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest builder 13/13] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o app ./cmd/dbdiscauth                                                                                                    25.6s
 => [idrac-telemetry-reference-tools/configui:latest builder 12/13] COPY go.* /build/                                                                                                                                                                    0.2s
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder 11/13] COPY cmd/prometheuspump /build/cmd/prometheuspump                                                                                                                              0.2s
 => [idrac-telemetry-reference-tools/configui:latest builder 13/13] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o app ./cmd/configui                                                                                                        54.3s
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder 12/13] COPY go.* /build/                                                                                                                                                              0.2s
 => [idrac-telemetry-reference-tools/redfishread:latest builder 11/13] COPY cmd/redfishread /build/cmd/redfishread                                                                                                                                       0.2s
 => [idrac-telemetry-reference-tools/prometheuspump:latest builder 13/13] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o app ./cmd/prometheuspump                                                                                            45.3s
 => [idrac-telemetry-reference-tools/redfishread:latest builder 12/13] COPY go.* /build/                                                                                                                                                                 0.1s
 => [idrac-telemetry-reference-tools/redfishread:latest builder 13/13] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o app ./cmd/redfishread                                                                                                  36.7s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest stage-1 1/3] COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt                                                                                            0.0s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest stage-1 2/3] COPY --from=builder /etc/passwd /etc/group /etc/                                                                                                                                     0.1s
 => [idrac-telemetry-reference-tools/dbdiscauth:latest stage-1 3/3] COPY --from=builder /build/app /app                                                                                                                                                  0.1s
 => [idrac-telemetry-reference-tools/configui:latest] exporting to image                                                                                                                                                                                 0.5s
 => => exporting layers                                                                                                                                                                                                                                  0.1s
 => => writing image sha256:c3186b541daf8ce9a14f36012a38050b0a2f6c00eeef073bf6c45e8f5a14c836                                                                                                                                                             0.0s
 => => naming to docker.io/idrac-telemetry-reference-tools/dbdiscauth:latest                                                                                                                                                                             0.0s
 => => writing image sha256:5592aa3fd355ecb560d50ada43c7f0899df8dbcde52263f9da1647840e76dcf3                                                                                                                                                             0.0s
 => => naming to docker.io/idrac-telemetry-reference-tools/redfishread:latest                                                                                                                                                                            0.0s
 => => writing image sha256:944c9060345760899f118d1e6463099d3c7c54454ed2039b715361a1189a4393                                                                                                                                                             0.0s
 => => naming to docker.io/idrac-telemetry-reference-tools/prometheuspump:latest                                                                                                                                                                         0.0s
 => => writing image sha256:c85a13ef287d37d68628c6907249f678ebc6a5c41c2814f43868dcd8c51bcf1c                                                                                                                                                             0.0s
 => => naming to docker.io/idrac-telemetry-reference-tools/configui:latest                                                                                                                                                                               0.0s
 => CACHED [idrac-telemetry-reference-tools/redfishread:latest stage-1 1/3] COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt                                                                                    0.0s
 => CACHED [idrac-telemetry-reference-tools/redfishread:latest stage-1 2/3] COPY --from=builder /etc/passwd /etc/group /etc/                                                                                                                             0.0s
 => [idrac-telemetry-reference-tools/redfishread:latest stage-1 3/3] COPY --from=builder /build/app /app                                                                                                                                                 0.1s
 => CACHED [idrac-telemetry-reference-tools/prometheuspump:latest stage-1 1/3] COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt                                                                                 0.0s
 => CACHED [idrac-telemetry-reference-tools/prometheuspump:latest stage-1 2/3] COPY --from=builder /etc/passwd /etc/group /etc/                                                                                                                          0.0s
 => [idrac-telemetry-reference-tools/prometheuspump:latest stage-1 3/3] COPY --from=builder /build/app /app                                                                                                                                              0.1s
 => CACHED [idrac-telemetry-reference-tools/configui:latest stage-1 1/4] COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt                                                                                       0.0s
 => CACHED [idrac-telemetry-reference-tools/configui:latest stage-1 2/4] COPY --from=builder /etc/passwd /etc/group /etc/                                                                                                                                0.0s
 => [idrac-telemetry-reference-tools/configui:latest stage-1 3/4] COPY --from=builder /build/app /app                                                                                                                                                    0.1s
 => [idrac-telemetry-reference-tools/configui:latest stage-1 4/4] COPY cmd/configui/index.html /                                                                                                                                                         0.1s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 9/9
 ⠿ Volume "idrac-telemetry-reference-tools_mysqldb-volume"  Created                                                                                                                                                                                      0.0s
 ⠿ Container mysqldb                                        Started                                                                                                                                                                                      2.6s
 ⠿ Container activemq                                       Started                                                                                                                                                                                      2.7s
 ⠿ Container prometheus                                     Started                                                                                                                                                                                      2.7s
 ⠿ Container telemetry-reference-tools-grafana              Started                                                                                                                                                                                      2.7s
 ⠿ Container idrac-telemetry-reference-tools-dbdiscauth-1   Started                                                                                                                                                                                      4.0s
 ⠿ Container idrac-telemetry-reference-tools-redfishread-1  Started                                                                                                                                                                                      5.1s
 ⠿ Container idrac-telemetry-reference-tools-configui-1     Started                                                                                                                                                                                      5.0s
 ⠿ Container prometheus-ingester                            Started                                                                                                                                                                                      5.1s
ubuntu@ip-172-27-1-238:~/iDRAC-Telemetry-Reference-Tools$ docker ps
CONTAINER ID   IMAGE                                                   COMMAND                  CREATED          STATUS         PORTS                                                                                       NAMES
ca7deee0064d   idrac-telemetry-reference-tools/prometheuspump:latest   "/app"                   10 seconds ago   Up 4 seconds   0.0.0.0:2112->2112/tcp, :::2112->2112/tcp                                                   prometheus-ingester
9e0aad9af966   idrac-telemetry-reference-tools/dbdiscauth:latest       "/app"                   10 seconds ago   Up 5 seconds                                                                                               idrac-telemetry-reference-tools-dbdiscauth-1
3948cd3dad08   idrac-telemetry-reference-tools/redfishread:latest      "/app"                   10 seconds ago   Up 4 seconds                                                                                               idrac-telemetry-reference-tools-redfishread-1
32d78b52531f   idrac-telemetry-reference-tools/configui:latest         "/app"                   10 seconds ago   Up 4 seconds   0.0.0.0:8080->8082/tcp, :::8080->8082/tcp                                                   idrac-telemetry-reference-tools-configui-1
065291ac8366   grafana/grafana:9.0.1                                   "/run.sh"                10 seconds ago   Up 7 seconds   0.0.0.0:3000->3000/tcp, :::3000->3000/tcp                                                   telemetry-reference-tools-grafana
4690d84d66b3   mysql:latest                                            "docker-entrypoint.s…"   10 seconds ago   Up 7 seconds   3306/tcp, 33060/tcp                                                                         mysqldb
55000a1dbec1   rmohr/activemq:latest                                   "/bin/sh -c 'bin/act…"   10 seconds ago   Up 7 seconds   1883/tcp, 5672/tcp, 61613-61614/tcp, 61616/tcp, 0.0.0.0:8161->8161/tcp, :::8161->8161/tcp   activemq
f60a762f7fd3   prom/prometheus:v2.36.0                                 "/bin/prometheus --c…"   10 seconds ago   Up 7 seconds   0.0.0.0:9090->9090/tcp, :::9090->9090/tcp                                                   prometheus
SailM23 commented 2 years ago

Nice, that you moved forward. Data might not be seen in the dashboard because of being old. You could try with selecting bigger time range like 30days or even more. This can happen due iDRAC system time not being current. date on iDRAC shell/iDRAC settings of GUI will tell the time, or the time on the metric reports from iDRAC will tell the time of timeseries data(https://100.x.x.x/redfish/v1/TelemetryService/MetricReports/PowerMetrics).

vintury commented 2 years ago

I'm talking about the fact that there are no metrics visualization dashboards in grafana. I have single dashboard, and it shows only one metric. See screenshot upper. I expected that after the completion of all operations, in the grafana there will be a dashboard displaying all the metrics.

I found one dashboard with idrac metrics on grafana web site, but them incompatible with current solution. I'm about: https://grafana.com/grafana/dashboards/12106-idrac-host-stats/

SailM23 commented 2 years ago

Currently the Prometheus-Grafana workflow provides one sample dashboard named "PowerMetricsPrometheusDashboard" having one metric PowerMetrics_SystemInputPower. There are 3 other sample dashboards for the Influx-Grafana workflow. Users are encouraged to create their own dashboards referring to these sample dashboards. reference video: https://www.youtube.com/watch?v=EBpBKBEidq8

Manually dashboards can be created for all the 234 iDRAC telemetry metrics.

This issue opened on GitHub was for prometheus not working, which is fixed, so going to close this issue. For further assistance with creation of dashboards, email can be sent to idractelemetryteam@dell.com.

vintury commented 2 years ago

Thank you for your help.