Hey,
I have single ArcGIS Monitor 2024.1 (App version: 2024.1.1+704) to monitor our two separate environments.
I am using labels to distinguish between them.
When creating a collection for each of the Portal, I am using similar query
"resource": "components",
"where": "(components.type = 'arcgis_portal')",
"having": [
{
"resource": "labels",
"where": "(labels.name = 'Staging')"
}
]
}
With collection I am also setting-up feature service, which is not token protected.
When I am trying to query service related to Prod I am receiving an error via REST:
{"status":"error","code":400,"error":{"code":400,"message":"Unable to complete query","details":[]}}
From Monitor GUI, I can easily see all the metrics for both envs and querying Staging endpoint works just fine.
I cannot see anything worrying in the logs of Monitor.
Any tips?
Regards,
Mikael
Hi @MikaelJ,
To confirm: you created a collection for your staging environment, using the expression querying on labels = "staging" and this worked fine.
Then you attempted to create a second collection for your production environment, using a similar expression, but this time querying on labels = "production", and this did not work - is that correct?
Can you please confirm all of your components that participate in your production environment are labeled correctly?
Is the screenshot you provided in your post the complete expression to define the collection? or is there anything else not shown?
Hey @DerekLaw ,
"Then you attempted to create a second collection for your production environment, using a similar expression, but this time querying on labels = "production", and this did not work - is that correct?"
Correct.
Can you please confirm all of your components that participate in your production environment are labeled correctly?
I have an issue with Portal for ArcGIS, so yes I've labeled 1/1 components as Prod.
"Is the screenshot you provided in your post the complete expression to define the collection? or is there anything else not shown?"
I've missed opening bracket, when I was copying over to the post
{
"resource": "components",
"where": "(components.type = 'arcgis_portal')",
"having": [
{
"resource": "labels",
"where": "(labels.name = 'Prod')"
}
]
}
Regards,
Mikael