veertuinc / anka-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEWA server that connects Anka Cloud to Prometheus
License: MIT License
A server that connects Anka Cloud to Prometheus
License: MIT License
We use the anka registry to store all our anka images, but do not use a controller. Due to the current layout of the exporter, this means we are unable to gather metrics on our registry, since the exporter expects to go through the controller.
It would be great if it were possible to get data straight from the registry, without going through the controller.
One possibility would be to do this by passing an ANKA_PROMETHEUS_EXPORTER_REGISTRY_ADDRESS
env var/flag, and require at least one of either the registry or the controller URLs to be specified.
Thank you!
anka_instance_state_per_template_count{state="Error",template_name="AnkaOB-ephemeral-arm-mobile-client-bba-cache-xCwJO",template_uuid="bab43bf2-f61f-4a32-8aee-1d6023bf8dc1"} 0
anka_instance_state_per_template_count{state="Error",template_name="AnkaOB-ephemeral-arm-mobile-client-bba-next-zVCsN",template_uuid="142b6da0-0579-49fd-b56a-502e618243bc"} 0
anka_instance_state_per_template_count{state="Error",template_name="arm-macos-13.1-xcode14.2",template_uuid="ff226570-1781-4145-9b22-686b9d772822"} 0
anka_instance_state_per_template_count{state="Error",template_name="arm-macos-13.3.1-bba-v2-cache-v1",template_uuid="58c3afa3-8bc1-4ca4-9fc2-27d210f80f52"} 0
anka_instance_state_per_template_count{state="Error",template_name="arm-macos-13.3.1-xcode14.3.1",template_uuid="ad36ee7f-2f24-4304-ac00-ed63551c88b9"} 0
"vm": {
. . .
"vmid": "142b6da0-0579-49fd-b56a-502e618243bc",
"name": "AnkaOB-ephemeral-arm-mobile-client-bba-next-fF3pr",
Yet, according to anka list, we should see
| arm-macos-13.5-xcode15.0-beta_8 (xcode15.0-beta_8-with_bootable_simulators) | 142b6da0-0579-49fd-b56a-502e618243bc | Sep 13 15:39:37 2023 | stopped |
The anka_registry_disk_used_space
label is returning data that was previously labeled as anka_registry_total_space_gb
. Unsure if this metric is mislabeled or providing incorrect data.
Expected Results:
anka_registry_disk_used_space
Observed Results:
anka_registry_total_space
Customer requests the ability to load the root token from a file, not just a string
Hey,
we need to get the run duration of each instance per user/usergroup. So that we can report the sum of total duration in minutes per user / month.
Can you report such a metric? E.g. anka_instance_state_per_user
or anka_instance_state_per_usergroup
Thanks
First, thanks for this useful piece of software.
It'd be nice to have the template name instead of the id.
Actually the anka_instance_state_per_template_count
consumes "/api/v1/vm"
while the name of the template can be grabbed in "/api/v1/registry/vm"
, so at the moment there is no correlation between name and id. Furthermore it seems the readme is not exactly mentioning this exporter:
The same in
Or does the template_name stand for the id ?
When you disjoin a node, the node_states metric doesn't remove the ID of the node.
We should have a disjoined state in the controller API or have the exporter notice it's gone and remove it/add it to a disjoined status. The exporter has a local state it keeps that we could try and access.
Hi! I have a problem with anka-prometheus-exporter configuration.
I downloaded the latest version of the package from https://github.com/veertuinc/anka-prometheus-exporter and run the commands below:
$ ANKA_PROMETHEUS_EXPORTER_CONTROLLER_ADDRESS="https://anka-controller.my.domain/" ./anka-prometheus-exporter
{"level":"info","msg":"Starting Prometheus Exporter for Anka (2.2.3)","time":"2022-05-11T17:17:52+03:00"}
objc[37620]: Attempt to use unknown class 0x7ff851d66778.
SIGABRT: abort
PC=0x7ff81056ddba m=4 sigcode=0
goroutine 0 [idle]:
runtime: unknown pc 0x7ff81056ddba
stack: frame={sp:0x7000094bbe38, fp:0x0} stack=[0x70000943d350,0x7000094bcf50)
00007000094bbd38: 0000000000000002 0000000000000002
00007000094bbd48: 0000000002808000 0000000002808400
Also I tried to run it without specifying HTTPS protocol, but still have another error:
$ ./anka-prometheus-exporter --controller-address "anka-controller.my.domain" Wed May 11 17:22:07 2022
{"level":"info","msg":"Starting Prometheus Exporter for Anka (2.2.3)","time":"2022-05-11T17:22:24+03:00"}
{"level":"fatal","msg":"Get \"anka-controller.my.domain/api/v1/status\": unsupported protocol scheme \"\"","time":"2022-05-11T17:22:24+03:00"}
I run it on my laptop, controller has valid self-signed certificate and itβs trusted on the computer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.