influxdata / community-templates

InfluxDB Community Templates: Quickly collect & analyze time series data from a range of sources: Kubernetes, MySQL, Postgres, AWS, Nginx, Jenkins, and more.
https://www.influxdata.com/products/influxdb-templates/gallery/
Apache License 2.0
351 stars 157 forks source link

apache_postgresql/website_template.yml test failing #201

Open russorat opened 4 years ago

russorat commented 4 years ago
Confirm removal of the stack[067dabd6fcd3f000] and all associated resources (y/n): 
yes: standard output: Broken pipe
Trying /home/runner/work/community-templates/community-templates/apache_postgresql/website_template.yml
LABELS    +add | -remove | unchanged
+-----+----------------------+----+---------------+---------+-------------+
| +/- |    METADATA NAME     | ID | RESOURCE NAME |  COLOR  | DESCRIPTION |
+-----+----------------------+----+---------------+---------+-------------+
| +   | angry-burnell-cc6001 |    | website       | #009f5f |             |
+-----+----------------------+----+---------------+---------+-------------+
|                                                    TOTAL  |      1      |
+-----+----------------------+----+---------------+---------+-------------+

BUCKETS    +add | -remove | unchanged
+-----+-----------------------+----+---------------+------------------+-------------+
| +/- |     METADATA NAME     | ID | RESOURCE NAME | RETENTION PERIOD | DESCRIPTION |
+-----+-----------------------+----+---------------+------------------+-------------+
| +   | rustling-gauss-cc6005 |    | website       | 720h0m0s         |             |
+-----+-----------------------+----+---------------+------------------+-------------+
|                                                         TOTAL       |      1      |
+-----+-----------------------+----+---------------+------------------+-------------+

CHECKS    +add | -remove | unchanged
+-----+------------------------------+----+---------------+-------------+
| +/- |        METADATA NAME         | ID | RESOURCE NAME | DESCRIPTION |
+-----+------------------------------+----+---------------+-------------+
| +   | condescending-faraday-0c6005 |    | Server Load   |             |
+-----+------------------------------+----+---------------+-------------+
+-----+------------------------------+----+---------------+-------------+
| +   | determined-wilson-0c6009     |    | Disk Space    |             |
+-----+------------------------------+----+---------------+-------------+
+-----+------------------------------+----+---------------+-------------+
| +   | spectacular-gagarin-0c6001   |    | Memory Usage  |             |
+-----+------------------------------+----+---------------+-------------+
|                                               TOTAL     |      3      |
+-----+------------------------------+----+---------------+-------------+

DASHBOARDS    +add | -remove | unchanged
+-----+---------------------------+----+-----------------+--------------------------------+------------+
| +/- |       METADATA NAME       | ID |  RESOURCE NAME  |          DESCRIPTION           | NUM CHARTS |
+-----+---------------------------+----+-----------------+--------------------------------+------------+
| +   | elastic-mirzakhani-8c6001 |    | Website Monitor | Dashboard for monitoring       | 6          |
|     |                           |    |                 | websites deployed on Apache +  |            |
|     |                           |    |                 | Postgresql                     |            |
+-----+---------------------------+----+-----------------+--------------------------------+------------+
|                                                                      TOTAL              |     1      |
+-----+---------------------------+----+-----------------+--------------------------------+------------+

TELEGRAF CONFIGURATIONS    +add | -remove | unchanged
+-----+------------------------+----+-----------------+--------------------------------+
| +/- |     METADATA NAME      | ID |  RESOURCE NAME  |          DESCRIPTION           |
+-----+------------------------+----+-----------------+--------------------------------+
| +   | magical-swanson-0c6003 |    | Website Monitor | A set of plugins for           |
|     |                        |    |                 | monitoring system resources,   |
|     |                        |    |                 | HTTP connection to Apache      |
|     |                        |    |                 |  and database queries from     |
|     |                        |    |                 | Postgresl                      |
+-----+------------------------+----+-----------------+--------------------------------+
|                                          TOTAL      |               1                |
+-----+------------------------+----+-----------------+--------------------------------+

VARIABLES    +add | -remove | unchanged
+-----+----------------------------+----+---------------+-------------+----------+-------------------------------------------------------------+
| +/- |       METADATA NAME        | ID | RESOURCE NAME | DESCRIPTION | ARG TYPE |                         ARG VALUES                          |
+-----+----------------------------+----+---------------+-------------+----------+-------------------------------------------------------------+
| +   | adventuring-neumann-0c600d |    | hostname      |             | query    | language="flux" query="import                               |
|     |                            |    |               |             |          | \"influxdata/influxdb/v1\"\nv1.measurementTagValues(bucket: |
|     |                            |    |               |             |          | \"website\", measurement: \"apache\", tag: \"host\")"       |
+-----+----------------------------+----+---------------+-------------+----------+-------------------------------------------------------------+
+-----+----------------------------+----+---------------+-------------+----------+-------------------------------------------------------------+
| +   | wonderful-buck-0c6011      |    | database      |             | query    | language="flux" query="import                               |
|     |                            |    |               |             |          | \"influxdata/influxdb/v1\"\nv1.measurementTagValues(bucket: |
|     |                            |    |               |             |          | \"website\", measurement: \"postgresql\", tag: \"db\")"     |
+-----+----------------------------+----+---------------+-------------+----------+-------------------------------------------------------------+
|                                                                        TOTAL   |                              2                              |
+-----+----------------------------+----+---------------+-------------+----------+-------------------------------------------------------------+

LABEL ASSOCIATIONS    +add | -remove | unchanged
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +/- | RESOURCE TYPE |      RESOURCE META NAME      |  RESOURCE NAME  | RESOURCE ID |  LABEL PACKAGE NAME  | LABEL NAME | LABEL ID |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | buckets       | rustling-gauss-cc6005        | website         |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | checks        | condescending-faraday-0c6005 | Server Load     |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | checks        | determined-wilson-0c6009     | Disk Space      |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | checks        | spectacular-gagarin-0c6001   | Memory Usage    |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | dashboards    | elastic-mirzakhani-8c6001    | Website Monitor |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | telegrafs     | magical-swanson-0c6003       | Website Monitor |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | variables     | adventuring-neumann-0c600d   | hostname        |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
| +   | variables     | wonderful-buck-0c6011        | database        |             | angry-burnell-cc6001 | website    |          |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+
|                                                                                                               TOTAL    |    8     |
+-----+---------------+------------------------------+-----------------+-------------+----------------------+------------+----------+

Error: Resource_type="label_mapping" err="failed to apply resource"
    metadata_name="variables:067dabd7288aa000:067dabd7284aa000" err_msg="Cannot add label, label already exists on resource".
See 'influx apply -h' for help
Error: Process completed with exit code 1.
mhall119 commented 4 years ago

@russorat any idea what could be causing this? The template only has one label per resource, and it hasn't changed in months. Has the influx apply code changed? Or possibly there's a test isolation problem that's leaving previous template installs in place?