Hi Simon, if that's of any help, the template for Prometheus configuration can be found here: https://github.com/SUSE/salt-formulas/blob/master/prometheus-formula/prometh... Please note that it's valid for Prometheues >= 2.32.0. For older versions look up another template in the same directory. The Uyuni service discovery `uyuni_sd_configs` retrieves information about targets from the Salt formulas applied from Uyuni server. So, e.g. you have to install node exporter on the minion via formula to have it automatically configured as monitored target. I hope it helps. Witek ### We stand with Ukraine ### On 3/15/22 15:20, Simon Avery wrote:
Hi Witek,
Thanks for taking the time to confirm that.
I'm embarrassed to say that I have spent a fair amount of time trying this manually too, with similar lack of success.
Not a big problem, I am already extracting a bunch of data and displaying it on Grafana via scripts, spacecmd, spacewalk-reports and the api.
Cheers
S
-----Original Message----- From: Witek Bedyk via Uyuni Users <users@lists.uyuni-project.org> Sent: 15 March 2022 12:39 To: users@lists.uyuni-project.org Cc: Witek Bedyk <witold.bedyk@suse.com> Subject: [EXTERNAL EMAIL] Re: Using Prometheus and Grafana on Centos
Hi Simon,
Prometheus and Grafana are only supported for openSUSE/SLES as of now. You can set up Prometheus manually though following the upstream documentation.
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#uy...
If you'd like to add support for CentOS/Rocky you can add and contribute an appropriate section to this file:
https://github.com/SUSE/salt-formulas/blob/master/prometheus-formula/prometh...
Cheers Witek
### We stand with Ukraine ###
On 3/10/22 15:48, Simon Avery wrote:
Has anyone managed to get the Grafana dashboards working on Centos or Rocky?
I have tried several times over various versions and just given another hour to the task without any joy.
Following the guide and applying the Salt formula always fails on the targets I’ve tried, with:
* ID: install_prometheus*
* Function: pkg.installed*
* Name: golang-github-prometheus-prometheus*
* Result: false*
* Comment: Error occurred installing package(s). Additional info follows:*
**
*errors:*
* - Running scope as unit: run-r4cd5eeb15cd8494685380c6107f1045b.scope*
* Last metadata expiration check: 0:00:03 ago on Thu Mar 10 14:37:34 2022.*
* No match for argument: golang-github-prometheus-prometheus*
* Error: Unable to find a match: golang-github-prometheus-prometheus*
* Started: 14:37:18.669658*
* Duration: 20980.625*
* SLS: prometheus*
* Changed: {}*
And indeed – the package is not called that on EL. It /is/ supplied in the Epel repos (although on Centos 7 that appears to be broken – it does install fine manually on Rocky 8) – but the package is called *golang-github-prometheus * - so always fails.
Anyone know how to work around this? I don’t have any Suse machines other than the one Uyuni runs on.
Manually, I always seem to get into configuration problems with Prometheus. It’s not software I’m familiar with and it does seem very fussy about syntax (something I’ve seen discussed at https://github.com/uyuni-project/uyuni/issues/2082 <https://github.com/uyuni-project/uyuni/issues/2082> )
I have an existing Grafana server that I’d like to be able to use this with.
*Simon Avery*
*Linux Systems Administrator: ATASS Sports*
Oxygen House |Grenadier Road, Exeter Business Park | EX1 3LH * t:*01392 440 400
*e:*simon.avery@atass-sports.co.uk <mailto:simon.avery@atass-sports.co.uk>
*www.atass-sports.co.uk* <https://gbr01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww. atass-sports.co.uk%2F&data=04%7C01%7Clisa.marshall%40oxygenhouse.com%7 C00a240e5723b4eefeb2208d9aa75c665%7C4cf9b4cbcac4461b992467e513a9cc36%7 C0%7C0%7C637728245077921186%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMD AiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=OGY%2BNb p9D0d4OAfV%2BJyLfHBOD5y5NcEsVzWzGRRXKHY%3D&reserved=0>
Follow us on Twitter: @atassSports <https://twitter.com/atassSports>*__**__*
*NOTICE* This email and any attachments confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. Please notify the sender immediately. ATASS Ltd is incorporated in England and Wales with company number 04807405. See our website for further details and our privacy policy