Git Product home page Git Product logo

kubernetes-prometheus's Introduction

kubernetes-prometheus's People

Watchers

 avatar  avatar  avatar  avatar

kubernetes-prometheus's Issues

Files outdated and can be replaced by official helm charts

Hey,
Seems like the information here:
https://docs.stackit.cloud/stackit/en/monitoring-of-stackit-ske-argus-78185340.html
and in this repo is quite outdated.

instead of using the files in this repo one could use helm to archive the same, but officially maintained and simpler to update:

#!/bin/bash
set -o pipefail

# export argus username/password/url before use
context_flag="name-of-ur-context"
helm --kube-context "$context_flag" repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm --kube-context "$context_flag" repo update
helm --kube-context "$context_flag" upgrade --install stackit prometheus-community/prometheus -f values.yaml \
  --set server.remoteWrite[0].url="$ARGUS_PUSH_METRIC_URL" \
  --set server.remoteWrite[0].basic_auth.username="$ARGUS_USERNAME" \
  --set server.remoteWrite[0].basic_auth.password="$ARGUS_PASSWORD"

and make use of values.yaml file:

configmapReload:
  prometheus:
    enabled: false
server:
  remoteWrite:
    - url: "$ARGUS_PUSH_METRIC_URL"
      basic_auth:
        username: "$ARGUS_USERNAME"
        password: "$ARGUS_PASSWORD"
      queue_config:
        max_shards: 50
        capacity: 5000
        max_samples_per_send: 500
        batch_send_deadline: 5s
  persistentVolume:
    enabled: false
  service:
    enabled: false
alertmanager:
  enabled: false
kube-state-metrics:
  enabled: true
prometheus-node-exporter:
  enabled: false
prometheus-pushgateway:
  enabled: false

Additionally the part in the documentation referring to creating ARGUS credentials can now be simplified by using the portal going to the project service and ARGUS cluster. On the panel on the right you can simply press: + Create credentials and right next to the new credentials press the little console button to get the username/password/url. The garfanaAdminUsername and grafanaAdminPassword from Step 2. can be just obtained in the Service-dashboard grafana tab aswell.

Hope this helps to get the documentation and this repo up to date :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.