GithubHelp home page GithubHelp logo

veertuinc / anka-prometheus-exporter Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 2.0 195 KB

A server that connects Anka Cloud to Prometheus

License: MIT License

Dockerfile 1.16% Shell 1.22% Go 95.65% Makefile 1.97%

anka-prometheus-exporter's People

Contributors

eoinmcafee00 avatar esysc avatar nivkeidan avatar norsegaud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

eoinmcafee00

anka-prometheus-exporter's Issues

[Feature Request] Support registry metrics without the controller

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!

ephemeral VM instance name showing in anka_instance_state_per_template_count as a template_name

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 |

CLOUD-747: v2.0: Registry Disk Used Incorrect Label or Data

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:

  • Value for anka_registry_disk_used_space

Observed Results:

  • Value representing anka_registry_total_space

Screen Shot 2021-02-24 at 10 46 10 AM

[Feature Request] - Gets the template name instead of id

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:

readme

The same in

metric: CreateGaugeMetricVec("anka_instance_state_per_template_count", "Count of Instances in a particular state, per Template (label: state, template_name)", []string{"state", "template_uuid"}),

Or does the template_name stand for the id ?

Exporter doesn't start if controller works through HTTPS/TLS

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.