Installation de Prometheus sur MacOS

Ma version de MacOS :

$ uname -a
Darwin MacBook.local 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64

Mise à jours de brew ( en mode verbose afin d’avoir plus d’information ) :

$ brew update -v 
...
$ brew -v
Homebrew 2.1.16
Homebrew/homebrew-core (git revision 00c2c; last commit 2019-11-18)
Homebrew/homebrew-cask (git revision 9e283; last commit 2019-11-18)

Début de l’installation :

$ brew install prometheus
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
mysql-client@5.7
==> Updated Formulae
awsume                       innotop                      manticoresearch              mysql-client                 mytop                        percona-xtrabackup
hydra                        kitchen-sync                 mydumper                     mysql-connector-c++          ntopng                       sysbench
imagemagick                  libzdb                       mysql++                      mysql-connector-c++@1.1      percona-toolkit              vala
==> Deleted Formulae
mysql-connector-c

==> Downloading https://homebrew.bintray.com/bottles/prometheus-2.13.1.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/85/....
############################################################# 100.0%
==> Pouring prometheus-2.13.1.catalina.bottle.tar.gz
==> Caveats
When used with `brew services`, prometheus' configuration is stored as command line flags in
  /usr/local/etc/prometheus.args

Example configuration:
  echo "--config.file ~/.config/prometheus.yml" > /usr/local/etc/prometheus.args


To have launchd start prometheus now and restart at login:
  brew services start prometheus
Or, if you don't want/need a background service you can just run:
  prometheus
==> Summary
?  /usr/local/Cellar/prometheus/2.13.1: 18 files, 119.3MB

Lancement du service :

$ echo "--config.file /usr/local/opt/prometheus/prometheus.yml" > /usr/local/etc/prometheus.args
$ vi /usr/local/opt/prometheus/prometheus.yml
$ brew services start prometheus
==> Successfully started `prometheus` (label: homebrew.mxcl.prometheus)

Installation de node_exporter :

$ brew install node_exporter
==> Downloading https://homebrew.bintray.com/bottles/node_exporter-0.18.1_1.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/17/174b28c6400abf9a2c566ea67d0928ad3e49b5a1cf3c1a1b9a813dc19f103094....
######################################################################## 100.0%
==> Pouring node_exporter-0.18.1_1.catalina.bottle.tar.gz
==> Caveats
When used with `brew services`, node_exporter's configuration is stored as command line flags in
  /usr/local/etc/node_exporter.args

Example configuration:
  echo --web.listen-address :9101 > /usr/local/etc/node_exporter.args

For the full list of options, execute
  node_exporter -h

To have launchd start node_exporter now and restart at login:
  brew services start node_exporter
Or, if you don't want/need a background service you can just run:
  node_exporter
==> Summary
?  /usr/local/Cellar/node_exporter/0.18.1_1: 8 files, 16MB

$ echo --web.listen-address :9101 > /usr/local/etc/node_exporter.args

$ brew services start node_exporter
==> Successfully started `node_exporter` (label: homebrew.mxcl.node_exporter)

Pour ce connecter : http://0.0.0.0:9090

Installation de Grafana sur MacOS

Ma version de MacOS :

$ uname -a
Darwin MacBook.local 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64

Mise à jours de brew ( en mode verbose afin d’avoir plus d’information ) :

$ brew update -v 

$ brew -v
Homebrew 2.1.16
Homebrew/homebrew-core (git revision 00c2c; last commit 2019-11-18)
Homebrew/homebrew-cask (git revision 9e283; last commit 2019-11-18)
$ brew install grafana
==> Downloading https://homebrew.bintray.com/bottles/grafana-6.4.4.catalina.bottle.tar.gz

Aie première erreur :

...
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
?  /usr/local/Cellar/node/13.1.0: 4,591 files, 54.2MB
==> Installing grafana dependency: yarn
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
  CompilerSelectionError: yarn cannot be built with any available compilers.
Install GNU's GCC:
  brew install gcc

Pour fixer le problème :

xcode-select --install

Ensuite, nouvelle installation de gcc :

$ brew install gcc
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
dvc                          node_exporter                rex                          shairport-sync               terraform                    unrar

==> Downloading https://homebrew.bintray.com/bottles/gcc-9.2.0_1.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/e1/e1a6cd0d52fb715431063657cec4e3578170079168b612a6998d321d778330b1
######################################################################## 100.0%
==> Pouring gcc-9.2.0_1.catalina.bottle.tar.gz
?  /usr/local/Cellar/gcc/9.2.0_1: 1,462 files, 287.9MB
==> `brew cleanup` has not been run in 30 days, running now...
...

Et pour finir installation de grafana :

$ brew install grafana
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/grafana-6.4.4.catalina.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/43/...
#######################################                                   54.9%
curl: (18) transfer closed with 25517176 bytes remaining to read
Error: Failed to download resource "grafana"
Download failed: https://homebrew.bintray.com/bottles/grafana-6.4.4.catalina.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Installing dependencies for grafana: yarn
==> Installing grafana dependency: yarn
==> Downloading https://yarnpkg.com/downloads/1.19.1/yarn-v1.19.1.tar.gz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/...
######################################################################## 100.0%
?  /usr/local/Cellar/yarn/1.19.1: 14 files, 5MB, built in 9 seconds
==> Downloading https://github.com/grafana/grafana/archive/v6.4.4.tar.gz
==> Downloading from https://codeload.github.com/grafana/grafana/tar.gz/v6.4.4
######################################################################## 100.0%
==> go run build.go build
==> yarn install --ignore-engines
==> node_modules/grunt-cli/bin/grunt build
==> Caveats
To have launchd start grafana now and restart at login:
  brew services start grafana
Or, if you don't want/need a background service you can just run:
  grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana --packaging=brew cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins
==> Summary
?  /usr/local/Cellar/grafana/6.4.4: 3,867 files, 176.6MB, built in 10 minutes 16 seconds
==> Caveats
==> grafana
To have launchd start grafana now and restart at login:
  brew services start grafana
Or, if you don't want/need a background service you can just run:
  grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana --packaging=brew cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins

On lance :

$ brew services start grafana
==> Successfully started `grafana` (label: homebrew.mxcl.grafana )

Ensuite un accès et un changement de login/password ( admin/ admin ):
http://localhost:3000/

Le port par défaut est le 3000 :

Rachat de « .org » par un fond privé … Aie

Lire l’article : https://www.bfmtv.com/tech/inquietudes-sur-l-avenir-de-l-un-des-plus-vieux-noms-de-domaine-le-org-1806917.html .

Le « .org », longtemps détenu par une association, passe entre les mains d’un fonds d’investissement privé. Derrière cette passation, des doutes surgissent quant à l’avenir de ce nom de domaine presque aussi vieux que le Web.

Misère, j’ai acheté cyber-neurones.org le 2001-02-17 à 16:59:05 . Actuellement le .org est au prix de 15,51 Euros chez PHPNET.ORG. Si j’avais cyber-neurones.fr cela serait à 10,02 Euros chez PHPNET.ORG.

 

PHPNET.ORG : MaxClientsVhost ?

En regardant les logs d’erreur j’ai souvent l’erreur suivante :

[Thu Nov 14 10:37:07.351510 2019] [mpm_itk:warn] [pid 33670] MaxClientsVhost reached for www.cyber-neurones.org:443, refusing client.
[Fri Nov 15 08:55:52.261087 2019] [mpm_itk:warn] [pid 40394] MaxClientsVhost reached for www.cyber-neurones.org:80, refusing client.
[Fri Nov 15 11:03:46.723180 2019] [mpm_itk:warn] [pid 32627] MaxClientsVhost reached for www.cyber-neurones.org:443, refusing client.
[Fri Nov 15 11:33:50.452444 2019] [mpm_itk:warn] [pid 7669] MaxClientsVhost reached for www.cyber-neurones.org:80, refusing client.
[Fri Nov 15 23:20:23.302085 2019] [mpm_itk:warn] [pid 4628] MaxClientsVhost reached for www.cyber-neurones.org:80, refusing client.
[Sat Nov 16 11:31:38.369082 2019] [mpm_itk:warn] [pid 17455] MaxClientsVhost reached for www.cyber-neurones.org:443, refusing client.

Je crois que je suis au max … A suivre !

Update du 20/11/2019 : Suite à la réponse de PHPNET.ORG (limitation à 12), je vais voir quel est le prix chez OVH. La solution PRO me semble équivalente ..

Actuellement je suis à 96 Euros/an HT = 8 Euros/mois HT.

Le détail de mon offre :

Chez OVH : L’offre PRO c’est 6 Euros/mois .