Nouvelle publication

Pesquisar

Annonce
· Juin 27, 2024
Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juin 27, 2024

Monitoring - Ajout de plusieurs label à une métrique custom

Bonjour,

Je souhaite remonter une métrique "custom" dans prometheus (file d'attente).

Pour l'instant, dans la version 2022, j'ai l'impression que l'on ne peut ajouter plusieurs label et pourtant les métriques de base savent le faire.

ex: métrique standard

iris_interop_messages_per_sec{cluster="1", host="xxxx", id="API", instance="xxxx:80", job="SAM", production="xxxx"}

mon exemple actuel : je voudrais pouvoir au moins ajouter la production, histoire d'avoir la source de la mesure.

my_iris_queue{cluster="1", id="xxxx", instance="xxx", job="SAM"}

 

Avez vous une idée de comment faire cela ? je rappel que dans le version 2022, on a pas la méthode SetSensorsLabel !

Merci d'avance

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juin 27, 2024

Is it possible to create constructor overloads ?

I have a class that inherit from AbstractException

I would like to create a new constructor that has 5 parameters :

Class Foo Extends %Exception.AbstractException
{
    Method %OnNew(arg1 As %String, arg2 As %String, arg3 As %String, arg4 As %String, arg5 As %String) As %Status
    {
        quit ##super("some message")
    }
}

I cannot compile it : 

ERROR #5478: Keyword signature error in Foo:%OnNew, keyword 'method argument/s signature' must be '%Library.String,%Library.String,%Library.String,%Library.String,%Exception.AbstractException' or its subclass

It's possible to create a constructor that has 4 parameters (like AbstractException class) but no more.

AFAIK it's possible in other languages.

6 Comments
Discussion (6)4
Connectez-vous ou inscrivez-vous pour continuer
Question
· Juin 27, 2024

Finding the Inode value for a file

The SYS.Mirror CatchupDB() method requires a System File Number/Inode value as a parameter.   I have not yet found a suitable internal method to get this value.  Is anyone aware of a utility method that would do this?   I do know I can get this value with a small amount of Python or by calling out to the OS.  However I wanted to stick with pure Objectscript in this project if possible.  

Failing in this I will use embedded python to run the line or two of Python needed to get this value.

Thank you for any hints

5 Comments
Discussion (5)2
Connectez-vous ou inscrivez-vous pour continuer
Discussion (1)2
Connectez-vous ou inscrivez-vous pour continuer