meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
groups:mg:private:resonatoren:mg:magnesium-server:start [2021/03/01 10:48] – Config kretz | groups:mg:private:resonatoren:mg:magnesium-server:start [2021/03/03 11:08] (current) – kretz | ||
---|---|---|---|
Line 20: | Line 20: | ||
At some point you will be asked to choose login data etc., choose the following: | At some point you will be asked to choose login data etc., choose the following: | ||
* login: magnesium | * login: magnesium | ||
- | * password: | + | * password: |
+ | * root-login: root | ||
+ | * password: | ||
+ | < | ||
* name of the computer: thingol | * name of the computer: thingol | ||
Line 70: | Line 73: | ||
===Installing Software=== | ===Installing Software=== | ||
+ | After you are greeted with the desktop of our debian installation, | ||
+ | * '' | ||
+ | * '' | ||
- | ===Config | + | Our most important software is **Docker**. With it you will just have to copy a few files from the wiki here and it will be up and running. |
- | < | + | We will need **docker-compose** for that. To install it, follow |
- | # The values in this file override the default values used by the system if | + | Afterwards we create |
- | # a config option is not specified. The commented out lines are the configuration | + | * '' |
- | # field and the default value used. Uncommenting a line and changing | + | * '' |
- | # will change | + | Navigate to the location with '' |
+ | ===Config Files=== | ||
+ | Before starting our grafana instance for the first time, we have to copy the other two folders '' | ||
- | # Once every 24 hours InfluxDB will report usage data to usage.influxdata.com | + | ===Starting Grafana=== |
- | # The data includes a random ID, os, arch, version, the number of series | + | To start grafana |
- | # usage data. No data from user databases is ever transmitted. | + | With that, you should be able to open '' |
- | # Change this option | + | |
- | # reporting-disabled = false | + | |
- | # Bind address to use for the RPC service for backup and restore. | ||
- | # bind-address = " | ||
- | ### | ||
- | ### [meta] | ||
- | ### | ||
- | ### Controls the parameters for the Raft consensus group that stores metadata | ||
- | ### about the InfluxDB cluster. | ||
- | ### | ||
- | |||
- | [meta] | ||
- | # Where the metadata/ | ||
- | dir = "/ | ||
- | |||
- | # Automatically create a default retention policy when creating a database. | ||
- | # retention-autocreate = true | ||
- | |||
- | # If log messages are printed for the meta service | ||
- | # logging-enabled = true | ||
- | |||
- | ### | ||
- | ### [data] | ||
- | ### | ||
- | ### Controls where the actual shard data for InfluxDB lives and how it is | ||
- | ### flushed from the WAL. " | ||
- | ### for your system, but the WAL settings are an advanced configuration. The | ||
- | ### defaults should work for most systems. | ||
- | ### | ||
- | |||
- | [data] | ||
- | # The directory where the TSM storage engine stores TSM files. | ||
- | dir = "/ | ||
- | |||
- | # The directory where the TSM storage engine stores WAL files. | ||
- | wal-dir = "/ | ||
- | |||
- | # The amount of time that a write will wait before fsyncing. | ||
- | # greater than 0 can be used to batch up multiple fsync calls. | ||
- | # disks or when WAL write contention is seen. A value of 0s fsyncs every write to the WAL. | ||
- | # Values in the range of 0-100ms are recommended for non-SSD disks. | ||
- | # wal-fsync-delay = " | ||
- | |||
- | |||
- | # The type of shard index to use for new shards. | ||
- | # recreated at startup. | ||
- | # cardinality datasets. | ||
- | # index-version = " | ||
- | |||
- | # Trace logging provides more verbose output around the tsm engine. Turning | ||
- | # this on can provide more useful output for debugging tsm engine issues. | ||
- | # trace-logging-enabled = false | ||
- | |||
- | # Whether queries should be logged before execution. Very useful for troubleshooting, | ||
- | # log any sensitive data contained within a query. | ||
- | # query-log-enabled = true | ||
- | |||
- | # Settings for the TSM engine | ||
- | |||
- | # CacheMaxMemorySize is the maximum size a shard' | ||
- | # reach before it starts rejecting writes. | ||
- | # Valid size suffixes are k, m, or g (case insensitive, | ||
- | # Vaues without a size suffix are in bytes. | ||
- | # cache-max-memory-size = " | ||
- | |||
- | # CacheSnapshotMemorySize is the size at which the engine will | ||
- | # snapshot the cache and write it to a TSM file, freeing up memory | ||
- | # Valid size suffixes are k, m, or g (case insensitive, | ||
- | # Values without a size suffix are in bytes. | ||
- | # cache-snapshot-memory-size = " | ||
- | |||
- | # CacheSnapshotWriteColdDuration is the length of time at | ||
- | # which the engine will snapshot the cache and write it to | ||
- | # a new TSM file if the shard hasn't received writes or deletes | ||
- | # cache-snapshot-write-cold-duration = " | ||
- | |||
- | # CompactFullWriteColdDuration is the duration at which the engine | ||
- | # will compact all TSM files in a shard if it hasn't received a | ||
- | # write or delete | ||
- | # compact-full-write-cold-duration = " | ||
- | |||
- | # The maximum number of concurrent full and level compactions that can run at one time. A | ||
- | # value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. | ||
- | # than 0 limits compactions to that value. | ||
- | # to cache snapshotting. | ||
- | # max-concurrent-compactions = 0 | ||
- | |||
- | # The threshold, in bytes, when an index write-ahead log file will compact | ||
- | # into an index file. Lower sizes will cause log files to be compacted more | ||
- | # quickly and result in lower heap usage at the expense of write throughput. | ||
- | # Higher sizes will be compacted less frequently, store more series in-memory, | ||
- | # and provide higher write throughput. | ||
- | # Valid size suffixes are k, m, or g (case insensitive, | ||
- | # Values without a size suffix are in bytes. | ||
- | # max-index-log-file-size = " | ||
- | |||
- | # The maximum series allowed per database before writes are dropped. | ||
- | # high cardinality issues at the database level. | ||
- | # 0. | ||
- | # max-series-per-database = 1000000 | ||
- | |||
- | # The maximum number of tag values per tag that are allowed before writes are dropped. | ||
- | # can prevent high cardinality tag values from being written to a measurement. | ||
- | # disabled by setting it to 0. | ||
- | # max-values-per-tag = 100000 | ||
- | |||
- | ### | ||
- | ### [coordinator] | ||
- | ### | ||
- | ### Controls the clustering service configuration. | ||
- | ### | ||
- | |||
- | [coordinator] | ||
- | # The default time a write request will wait until a " | ||
- | # write-timeout = " | ||
- | |||
- | # The maximum number of concurrent queries allowed to be executing at one time. If a query is | ||
- | # executed and exceeds this limit, an error is returned to the caller. | ||
- | # by setting it to 0. | ||
- | # max-concurrent-queries = 0 | ||
- | |||
- | # The maximum time a query will is allowed to execute before being killed by the system. | ||
- | # can help prevent run away queries. | ||
- | # query-timeout = " | ||
- | |||
- | # The time threshold when a query will be logged as a slow query. | ||
- | # discover slow or resource intensive queries. | ||
- | # log-queries-after = " | ||
- | |||
- | # The maximum number of points a SELECT can process. | ||
- | # the maximum point count unlimited. | ||
- | # be aborted immediately when hitting the limit. | ||
- | # max-select-point = 0 | ||
- | |||
- | # The maximum number of series a SELECT can run. A value of 0 will make the maximum series | ||
- | # count unlimited. | ||
- | # max-select-series = 0 | ||
- | |||
- | # The maxium number of group by time bucket a SELECT can create. | ||
- | # number of buckets unlimited. | ||
- | # max-select-buckets = 0 | ||
- | |||
- | ### | ||
- | ### [retention] | ||
- | ### | ||
- | ### Controls the enforcement of retention policies for evicting old data. | ||
- | ### | ||
- | |||
- | [retention] | ||
- | # Determines whether retention policy enforcement enabled. | ||
- | # enabled = true | ||
- | |||
- | # The interval of time when retention policy enforcement checks run. | ||
- | # check-interval = " | ||
- | |||
- | ### | ||
- | ### [shard-precreation] | ||
- | ### | ||
- | ### Controls the precreation of shards, so they are available before data arrives. | ||
- | ### Only shards that, after creation, will have both a start- and end-time in the | ||
- | ### future, will ever be created. Shards are never precreated that would be wholly | ||
- | ### or partially in the past. | ||
- | |||
- | [shard-precreation] | ||
- | # Determines whether shard pre-creation service is enabled. | ||
- | # enabled = true | ||
- | |||
- | # The interval of time when the check to pre-create new shards runs. | ||
- | # check-interval = " | ||
- | |||
- | # The default period ahead of the endtime of a shard group that its successor | ||
- | # group is created. | ||
- | # advance-period = " | ||
- | |||
- | ### | ||
- | ### Controls the system self-monitoring, | ||
- | ### | ||
- | ### The internal database for monitoring data is created automatically if | ||
- | ### if it does not already exist. The target retention within this database | ||
- | ### is called ' | ||
- | ### and a replication factor of 1, if it does not exist. In all cases the | ||
- | ### this retention policy is configured as the default for the database. | ||
- | |||
- | [monitor] | ||
- | # Whether to record statistics internally. | ||
- | # store-enabled = true | ||
- | |||
- | # The destination database for recorded statistics | ||
- | # store-database = " | ||
- | |||
- | # The interval at which to record statistics | ||
- | # store-interval = " | ||
- | |||
- | ### | ||
- | ### [http] | ||
- | ### | ||
- | ### Controls how the HTTP endpoints are configured. These are the primary | ||
- | ### mechanism for getting data into and out of InfluxDB. | ||
- | ### | ||
- | |||
- | [http] | ||
- | # Determines whether HTTP endpoint is enabled. | ||
- | # enabled = true | ||
- | |||
- | # The bind address used by the HTTP service. | ||
- | # bind-address = ": | ||
- | |||
- | # Determines whether user authentication is enabled over HTTP/HTTPS. | ||
- | auth-enabled = true | ||
- | |||
- | # The default realm sent back when issuing a basic auth challenge. | ||
- | # realm = " | ||
- | |||
- | # Determines whether HTTP request logging is enabled. | ||
- | # log-enabled = true | ||
- | |||
- | # When HTTP request logging is enabled, this option specifies the path where | ||
- | # log entries should be written. If unspecified, | ||
- | # intermingles HTTP logs with internal InfluxDB logging. | ||
- | # | ||
- | # If influxd is unable to access the specified path, it will log an error and fall back to writing | ||
- | # the request log to stderr. | ||
- | # access-log-path = "" | ||
- | |||
- | # Determines whether detailed write logging is enabled. | ||
- | # write-tracing = false | ||
- | |||
- | # Determines whether the pprof endpoint is enabled. | ||
- | # troubleshooting and monitoring. | ||
- | # pprof-enabled = true | ||
- | |||
- | # Determines whether HTTPS is enabled. | ||
- | # https-enabled = false | ||
- | |||
- | # The SSL certificate to use when HTTPS is enabled. | ||
- | # https-certificate = "/ | ||
- | |||
- | # Use a separate private key location. | ||
- | # https-private-key = "" | ||
- | |||
- | # The JWT auth shared secret to validate requests using JSON web tokens. | ||
- | # shared-secret = "" | ||
- | |||
- | # The default chunk size for result sets that should be chunked. | ||
- | # max-row-limit = 0 | ||
- | |||
- | # The maximum number of HTTP connections that may be open at once. New connections that | ||
- | # would exceed this limit are dropped. | ||
- | # max-connection-limit = 0 | ||
- | |||
- | # Enable http service over unix domain socket | ||
- | # unix-socket-enabled = false | ||
- | |||
- | # The path of the unix domain socket. | ||
- | # bind-socket = "/ | ||
- | |||
- | # The maximum size of a client request body, in bytes. Setting this value to 0 disables the limit. | ||
- | # max-body-size = 25000000 | ||
- | |||
- | |||
- | ### | ||
- | ### [ifql] | ||
- | ### | ||
- | ### Configures the ifql RPC API. | ||
- | ### | ||
- | |||
- | [ifql] | ||
- | # Determines whether the RPC service is enabled. | ||
- | # enabled = true | ||
- | |||
- | # Determines whether additional logging is enabled. | ||
- | # log-enabled = true | ||
- | |||
- | # The bind address used by the ifql RPC service. | ||
- | # bind-address = ": | ||
- | |||
- | |||
- | ### | ||
- | ### [logging] | ||
- | ### | ||
- | ### Controls how the logger emits logs to the output. | ||
- | ### | ||
- | |||
- | [logging] | ||
- | # Determines which log encoder to use for logs. Available options | ||
- | # are auto, logfmt, and json. auto will use a more a more user-friendly | ||
- | # output format if the output terminal is a TTY, but the format is not as | ||
- | # easily machine-readable. When the output is a non-TTY, auto will use | ||
- | # logfmt. | ||
- | # format = " | ||
- | |||
- | # Determines which level of logs will be emitted. The available levels | ||
- | # are error, warn, info, and debug. Logs that are equal to or above the | ||
- | # specified level will be emitted. | ||
- | # level = " | ||
- | |||
- | # Suppresses the logo output that is printed when the program is started. | ||
- | # The logo is always suppressed if STDOUT is not a TTY. | ||
- | # suppress-logo = false | ||
- | |||
- | ### | ||
- | ### [subscriber] | ||
- | ### | ||
- | ### Controls the subscriptions, | ||
- | ### received by the InfluxDB host. | ||
- | ### | ||
- | |||
- | [subscriber] | ||
- | # Determines whether the subscriber service is enabled. | ||
- | # enabled = true | ||
- | |||
- | # The default timeout for HTTP writes to subscribers. | ||
- | # http-timeout = " | ||
- | |||
- | # Allows insecure HTTPS connections to subscribers. | ||
- | # signed certificates. | ||
- | # insecure-skip-verify = false | ||
- | |||
- | # The path to the PEM encoded CA certs file. If the empty string, the default system certs will be used | ||
- | # ca-certs = "" | ||
- | |||
- | # The number of writer goroutines processing the write channel. | ||
- | # write-concurrency = 40 | ||
- | |||
- | # The number of in-flight writes buffered in the write channel. | ||
- | # write-buffer-size = 1000 | ||
- | |||
- | |||
- | ### | ||
- | ### [[graphite]] | ||
- | ### | ||
- | ### Controls one or many listeners for Graphite data. | ||
- | ### | ||
- | |||
- | [[graphite]] | ||
- | # Determines whether the graphite endpoint is enabled. | ||
- | # enabled = false | ||
- | # database = " | ||
- | # retention-policy = "" | ||
- | # bind-address = ": | ||
- | # protocol = " | ||
- | # consistency-level = " | ||
- | |||
- | # These next lines control how batching works. You should have this enabled | ||
- | # otherwise you could get dropped metrics or poor performance. Batching | ||
- | # will buffer points in memory if you have many coming in. | ||
- | |||
- | # Flush if this many points get buffered | ||
- | # batch-size = 5000 | ||
- | |||
- | # number of batches that may be pending in memory | ||
- | # batch-pending = 10 | ||
- | |||
- | # Flush at least this often even if we haven' | ||
- | # batch-timeout = " | ||
- | |||
- | # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max. | ||
- | # udp-read-buffer = 0 | ||
- | |||
- | ### This string joins multiple matching ' | ||
- | # separator = " | ||
- | |||
- | ### Default tags that will be added to all metrics. | ||
- | ### or by tags extracted from metric | ||
- | # tags = [" | ||
- | |||
- | ### Each template line requires a template pattern. | ||
- | ### filter before the template and separated by spaces. | ||
- | ### tags following the template. | ||
- | ### similar to the line protocol format. | ||
- | # templates = [ | ||
- | # " | ||
- | # # Default template | ||
- | # " | ||
- | # ] | ||
- | |||
- | ### | ||
- | ### [collectd] | ||
- | ### | ||
- | ### Controls one or many listeners for collectd data. | ||
- | ### | ||
- | |||
- | [[collectd]] | ||
- | enabled = true | ||
- | bind-address = ": | ||
- | database = " | ||
- | auth-file = "/ | ||
- | # retention-policy = "" | ||
- | # | ||
- | # The collectd service supports either scanning a directory for multiple types | ||
- | # db files, or specifying a single db file. | ||
- | # typesdb = "/ | ||
- | # | ||
- | security-level = " | ||
- | # auth-file = "/ | ||
- | |||
- | # These next lines control how batching works. You should have this enabled | ||
- | # otherwise you could get dropped metrics or poor performance. Batching | ||
- | # will buffer points in memory if you have many coming in. | ||
- | |||
- | # Flush if this many points get buffered | ||
- | batch-size = 3000 | ||
- | |||
- | # Number of batches that may be pending in memory | ||
- | batch-pending = 5 | ||
- | |||
- | # Flush at least this often even if we haven' | ||
- | # batch-timeout = " | ||
- | |||
- | # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max. | ||
- | # read-buffer = 0 | ||
- | |||
- | # Multi-value plugins can be handled two ways. | ||
- | # " | ||
- | # " | ||
- | # " | ||
- | # parse-multivalue-plugin = " | ||
- | ### | ||
- | ### [opentsdb] | ||
- | ### | ||
- | ### Controls one or many listeners for OpenTSDB data. | ||
- | ### | ||
- | |||
- | [[opentsdb]] | ||
- | # enabled = false | ||
- | # bind-address = ": | ||
- | # database = " | ||
- | # retention-policy = "" | ||
- | # consistency-level = " | ||
- | # tls-enabled = false | ||
- | # certificate= "/ | ||
- | |||
- | # Log an error for every malformed point. | ||
- | # log-point-errors = true | ||
- | |||
- | # These next lines control how batching works. You should have this enabled | ||
- | # otherwise you could get dropped metrics or poor performance. Only points | ||
- | # metrics received over the telnet protocol undergo batching. | ||
- | |||
- | # Flush if this many points get buffered | ||
- | # batch-size = 1000 | ||
- | |||
- | # Number of batches that may be pending in memory | ||
- | # batch-pending = 5 | ||
- | |||
- | # Flush at least this often even if we haven' | ||
- | # batch-timeout = " | ||
- | |||
- | ### | ||
- | ### [[udp]] | ||
- | ### | ||
- | ### Controls the listeners for InfluxDB line protocol data via UDP. | ||
- | ### | ||
- | |||
- | [[udp]] | ||
- | # enabled = false | ||
- | # bind-address = ": | ||
- | # database = " | ||
- | # retention-policy = "" | ||
- | |||
- | # These next lines control how batching works. You should have this enabled | ||
- | # otherwise you could get dropped metrics or poor performance. Batching | ||
- | # will buffer points in memory if you have many coming in. | ||
- | |||
- | # Flush if this many points get buffered | ||
- | # batch-size = 5000 | ||
- | |||
- | # Number of batches that may be pending in memory | ||
- | # batch-pending = 10 | ||
- | |||
- | # Will flush at least this often even if we haven' | ||
- | # batch-timeout = " | ||
- | |||
- | # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max. | ||
- | # read-buffer = 0 | ||
- | |||
- | ### | ||
- | ### [continuous_queries] | ||
- | ### | ||
- | ### Controls how continuous queries are run within InfluxDB. | ||
- | ### | ||
- | |||
- | [continuous_queries] | ||
- | # Determines whether the continuous query service is enabled. | ||
- | # enabled = true | ||
- | |||
- | # Controls whether queries are logged when executed by the CQ service. | ||
- | # log-enabled = true | ||
- | |||
- | # Controls whether queries are logged to the self-monitoring data store. | ||
- | # query-stats-enabled = false | ||
- | |||
- | # interval for how often continuous queries will be checked if they need to run | ||
- | # run-interval = " | ||
+ | < | ||
There are three basic steps to follow: | There are three basic steps to follow: | ||
- install Debian in RAID | - install Debian in RAID | ||
- | - install all the programs | + | - install all the programs |
- get the configuration and all the connections running | - get the configuration and all the connections running | ||
+ | </ |