Grafana activejobs embedded dashboard

Greetings – I’m being slow about the guidance to configure embedded dashboards from grafana for the activejobs app.

Customizations: Grafana Support

As the activejobs has only a manifest.yml file, is the guidance in the customization to edit the manifest to enable the embedded dashboard support? The syntax seems wrong to include in a manifest. Perhaps we are meant to create a file ‘env’, as with other apps? e.g.

/etc/ood/config/apps/activejobs/env

Thanks

~ Em

The settings for grafana support come from the cluster.d file. Though a quick glance at our configurations - they’re the same for every cluster so they’re likely better suited to an ondemand.d config.

In any case, it’s under the custom section of a cluster.d file. You’ll have to copy & paste it for every batch cluster you have.

Hi, Jeff – There are two windows. The first is the section where I’m unclear of the target file for update. I’m probably just not able to interpret the customization instructions properly.

[auth.anonymous]
enabled = true
org_name = Public
org_role = Viewer

[security]
allow_embedding = true

and then the second, which is clearly marked for the cluster config, I’ve already added to my local cluster.d/smaster2.yml :

custom:
  grafana:
    host: "https://grafana.osc.edu"
    orgId: 3
    dashboard:
      name: "ondemand-clusters"
      uid: "aaba6Ahbauquag"
      panels:
        cpu: 20
        memory: 24
    labels:
      cluster: "cluster"
      host: "host"
      jobid: "jobid"
    cluster_override: "mysite"

Thanks

~ Em

Oh OK - the first is the grafana configuration.

Hi, Jeff – To confirm, these statements are added to /etc/grafana/grafana.ini?

Thanks

Yes I believe grafana has only the 1 config file and that’s it.

Thanks, Jeff – Yes, the grafana.ini file matches the content described in the customization page.

Cheers

Questions: How to determine the values for ‘orgId’ and ‘uid’?

Anyone? I don’t mean to drop everything I ask on Jeff ( :

Thanks

No problem. They are in the URL when you navigate to the grafana dashboard in question.

Yes, they are. But how do we choose the value to set for our implementation of OnDemand?

Not sure what you mean. You don’t choose them - grafana decided & generated both, you just extract them from the URL so that OnDemand can generate the same URL.

Yes, thanks, Jeff. I took awhile (being ignorant of grafana) to understand, but after accessing the dashboard directly, the element of the url to take as a uid became clear.

Thanks for your patience.