Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,641,787
Community Members
 
Community Events
196
Community Groups

Can a Statuspage system metric with custom Python data source be a graph with multiple plots?

So generally sending data to a custom metric from Python is something like:

ts = int(time.time()) - (i * 5 * 60)
value = 10

params = {'data[timestamp]': ts, 'data[value]':value}

where from the example, value is an integer or numerical value. I can do this and get a graph with a single line plot.

I need to send data in the form:

ts = int(time.time()) - (i * 5 * 60)
value = {'a':10, 'b':20, 'c': 30}
params = {'data[timestamp]': ts, 'data[value]':value}

where value is a dictionary. The objective is to get 3 different lines in this case.

Obviously the code above gives a response of:

{"error":"data[value] is invalid"}

So how can I achieve this?

1 answer

1 accepted

0 votes
Answer accepted
Zach
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 06, 2020

Hey Kingsley 

Metrics in their current form don't have a way of keeping multiple plots in a single metric. 

That being said, it's possible that it could be done using some custom CSS/HTML/JS to overlay a few metrics on a page, but that isn't something that I'd have experience with writing I'm afraid. 

Seems like a pretty useful thing to leave out. But thanks. I'll keep digging.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events