Newbie: Defining Metrics Programmatically Not Working #923
Unanswered
prime-minister-of-fun
asked this question in
Q&A
Replies: 1 comment
-
Is there a reason that you are using I think you need to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm attempting to build a scraper that returns both values and the metric definition dynamically.
Everything works as expected.
If I add the below, and remove the global declaration, then python returns an error.
This example returns an error on attempting .set(). The error:"name 'OTHER_EVENTS' is not defined". Python does not register the global object. You can delete the global command and the error is the same.
My gut feeling is, I'm missing something. Is dynamically generating the metric not supported?
Beta Was this translation helpful? Give feedback.
All reactions